ssh_exchange_identification: read: Connection reset by peer

最近折腾云服务器防火墙,不小心设置出错导致ssh连接不上,错误代码如下:

ssh_exchange_identification: read: Connection reset by peer

加-v参数可查看详细连接信息:

ssh -v  192.168.0.101

解决方案:使用vnc等连接到主机。

vi /etc/hosts.allow

加入以下:

sshd: ALL    ##允许所有ip主机均能连接本机

重启下ssh:

service sshd restart

发表评论

您的邮箱地址不会被公开。