Сегодня я купил USW-Flex-2.5G-5 и подключил его к UniFi Network Application. Не могу подключиться к коммутатору по SSH, используя те же учетные данные, которые использую для подключения к другим коммутаторам, подключенным к тому же UniFi Network Application. Получаю сообщение: "Connection reset by 192.168.1.15 port 22". Я изменил IP-адрес коммутатора, перезагрузил коммутатор, и даже изменил IP клиента на тот же адрес в сети 192.168.1.0/24, чтобы исключить проблему с файрволом (UCG-Max). Получаю эту ошибку, когда SSH-клиент находится в той же подсети, что и USW-Flex-2.5G-5, и получаю то же сообщение, когда клиент находится в другой подсети, что указывает на участие файрвола на UCG-Max в этом сценарии. Версия прошивки USW-Flex-2.5G-5 – 2.0.5, а версия Network Application – 9.0.108.
Вот вывод команды ssh -vvv:
ssh -vvv ******@192.168.1.15
OpenSSH_9.8p1, LibreSSL 3.3.6
debug1: Чтение данных конфигурации /Users/*****/.ssh/config
debug3: kex names ok: [diffie-hellman-group-exchange-sha1]
debug3: kex names ok: [diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1]
debug3: kex names ok: [diffie-hellman-group1-sha1]
debug3: kex names ok: [diffie-hellman-group1-sha1]
debug1: Чтение данных конфигурации /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config строка 21: include /etc/ssh/ssh_config.d/* не соответствовало никаким файлам
debug1: /etc/ssh/ssh_config строка 54: Применение опций для *
debug2: resolve_canonicalize: hostname 192.168.1.15 – это адрес
debug3: расширение UserKnownHostsFile '~/.ssh/known_hosts' -> '/Users/*****/.ssh/known_hosts'
debug3: расширение UserKnownHostsFile '~/.ssh/known_hosts2' -> '/Users/*****/.ssh/known_hosts2'
debug1: Authenticator provider $SSH_SK_PROVIDER не разрешился; отключение
debug3: channel_clear_timeouts: очистка
debug3: ssh_connect_direct: вход
debug1: Подключение к 192.168.1.15 [192.168.1.15] порт 22.
debug3: set_sock_tos: установка сокета 3 IP_TOS 0x48
debug1: Установлено соединение.
debug1: identity file /Users/*****/.ssh/id_rsa type -1
debug1: identity file /Users/*****/.ssh/id_rsa-cert type -1
debug1: identity file /Users/*****/.ssh/id_ecdsa type -1
debug1: identity file /Users/*****/.ssh/id_ecdsa-cert type -1
debug1: identity file /Users/*****/.ssh/id_ecdsa_sk type -1
debug1: identity file /Users/*****/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /Users/*****/.ssh/id_ed25519 type -1
debug1: identity file /Users/*****/.ssh/id_ed25519-cert type -1
debug1: identity file /Users/*****/.ssh/id_ed25519_sk type -1
debug1: identity file /Users/*****/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /Users/*****/.ssh/id_xmss type -1
debug1: identity file /Users/*****/.ssh/id_xmss-cert type -1
debug1: identity file /Users/*****/.ssh/id_dsa type -1
debug1: identity file /Users/*****/.ssh/id_dsa-cert type -1
Последние три строки вывода debug:
debug1: Local version string SSH-2.0-OpenSSH_9.8
kex_exchange_identification: read: Connection reset by peer
Connection reset by 192.168.1.15 port 22
При запуске той же команды debug для коммутатора USW-Flex (46W), последние три строки debug отличаются:
debug1: Local version string SSH-2.0-OpenSSH_9.8
debug1: Remote protocol version 2.0, remote software version dropbear_2022.83
debug1: compat_banner: no match: dropbear_2022.83
Вот вывод команды ssh -vvv:
ssh -vvv ******@192.168.1.15
OpenSSH_9.8p1, LibreSSL 3.3.6
debug1: Чтение данных конфигурации /Users/*****/.ssh/config
debug3: kex names ok: [diffie-hellman-group-exchange-sha1]
debug3: kex names ok: [diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1]
debug3: kex names ok: [diffie-hellman-group1-sha1]
debug3: kex names ok: [diffie-hellman-group1-sha1]
debug1: Чтение данных конфигурации /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config строка 21: include /etc/ssh/ssh_config.d/* не соответствовало никаким файлам
debug1: /etc/ssh/ssh_config строка 54: Применение опций для *
debug2: resolve_canonicalize: hostname 192.168.1.15 – это адрес
debug3: расширение UserKnownHostsFile '~/.ssh/known_hosts' -> '/Users/*****/.ssh/known_hosts'
debug3: расширение UserKnownHostsFile '~/.ssh/known_hosts2' -> '/Users/*****/.ssh/known_hosts2'
debug1: Authenticator provider $SSH_SK_PROVIDER не разрешился; отключение
debug3: channel_clear_timeouts: очистка
debug3: ssh_connect_direct: вход
debug1: Подключение к 192.168.1.15 [192.168.1.15] порт 22.
debug3: set_sock_tos: установка сокета 3 IP_TOS 0x48
debug1: Установлено соединение.
debug1: identity file /Users/*****/.ssh/id_rsa type -1
debug1: identity file /Users/*****/.ssh/id_rsa-cert type -1
debug1: identity file /Users/*****/.ssh/id_ecdsa type -1
debug1: identity file /Users/*****/.ssh/id_ecdsa-cert type -1
debug1: identity file /Users/*****/.ssh/id_ecdsa_sk type -1
debug1: identity file /Users/*****/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /Users/*****/.ssh/id_ed25519 type -1
debug1: identity file /Users/*****/.ssh/id_ed25519-cert type -1
debug1: identity file /Users/*****/.ssh/id_ed25519_sk type -1
debug1: identity file /Users/*****/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /Users/*****/.ssh/id_xmss type -1
debug1: identity file /Users/*****/.ssh/id_xmss-cert type -1
debug1: identity file /Users/*****/.ssh/id_dsa type -1
debug1: identity file /Users/*****/.ssh/id_dsa-cert type -1
Последние три строки вывода debug:
debug1: Local version string SSH-2.0-OpenSSH_9.8
kex_exchange_identification: read: Connection reset by peer
Connection reset by 192.168.1.15 port 22
При запуске той же команды debug для коммутатора USW-Flex (46W), последние три строки debug отличаются:
debug1: Local version string SSH-2.0-OpenSSH_9.8
debug1: Remote protocol version 2.0, remote software version dropbear_2022.83
debug1: compat_banner: no match: dropbear_2022.83
