我试图从linux机器上通过ssh连接到我们的HpPro曲线交换机,我得到了一个错误:"ssh_exchange_identification:由远程主机关闭的连接“。(也作为根)
我可以毫不费力地通过ssh连接到其他Linux机器。通过Windows + Putty连接到开关也是有效的。
这是一个标准的Debian安装,没有任何特定的配置。
我是不是忘了什么?
-vv 1.0.0.20
OpenSSH_7.4p1 Debian-10+deb9u3, OpenSSL 1.0.2l 25 May 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: resolving "1.0.0.20" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 1.0.0.20 [1.0.0.20] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.4p1 Debian-10+deb9u3
ssh_exchange_identification: Connection closed by remote host
发布于 2018-04-16 07:29:23
ssh_exchange_identification: Connection closed by remote host
当SSH客户端与服务器建立TCP连接时,要进行的第一个数据交换是由服务器向客户端发送其版本字符串。您收到的消息表明服务器没有向客户端发送版本字符串,而是关闭了TCP连接。
这不是身份验证失败。服务器尚未向客户端发送其主机密钥,客户端尚未尝试对服务器进行身份验证。服务器刚刚接受了来自客户端的TCP连接,然后删除了它。
对此行为最简单的解释是,服务器配置为不接受来自特定IP地址的连接,并且您试图从不允许连接到服务器的系统连接。
https://unix.stackexchange.com/questions/438042
复制相似问题