拒绝主机是否会导致错误 ssh_exchange_identification:连接已关闭?

拒绝主机是否会导致错误 ssh_exchange_identification:连接已关闭?

从昨天起,我无法通过 ssh 访问我的远程服务器。它显示错误“连接已关闭”。即使重新启动后,我也无法访问服务器,并且我一次又一次地收到相同的错误。可能是因为拒绝主机不再需要我了?

 OpenSSH_6.0p1, OpenSSL 1.0.1b 26 Apr 2012
 debug1: Connecting to www.chihoang.de [78.46.220.237] port 22.
 debug1: Connection established.
 debug1: identity file /home/XXX/.ssh/id_rsa type -1
 debug1: identity file /home/XXX/.ssh/id_rsa-cert type -1
 debug1: identity file /home/XXX/.ssh/id_dsa type -1
 debug1: identity file /home/XXX/.ssh/id_dsa-cert type -1
 debug1: identity file /home/XXX/.ssh/id_ecdsa type -1
 debug1: identity file /home/XXX/.ssh/id_ecdsa-cert type -1
 ssh_exchange_identification: Connection closed by remote host

我有一个救援系统,我想我可以启动它并尝试我的用户,然后卸载denyhosts?我试过cygwin、Suse和Windows上的客户端,但无济于事。

答案1

这可能确实是denyhosts,可能您已禁用密码登录。您的日志显示您没有生成公钥/私钥对。在安装denyhosts之前,您是否查看过它的常见问题解答?http://denyhosts.sourceforge.net/faq.html

相关内容