ssh_exchange_identification: Connection closed by remote host

2016-07-14

ssh_exchange_identification: Connection closed by remote host

the connection to the remote host was lost . this usually means that you network connection went down or that the remote host was rebooted most network outages are short. and thus trying again may work

 

1)  最简单的解决方法就是让/etc/hosts.allow/etc/hosts.deny里面的所有信息都不生效,全部注销掉,重启SSH服务就可以了

2)但是还有一种情况,就是客户端连接数过多时,也会报这个错误。缺省情况下,SSH终端连接数最大为10个。在这种情况下,需要改SSH的配置文件,

grep MaxStartups /etc/ssh/sshd_config

grep MaxSession /etc/ssh/sshd_config

分类:Linux | 标签: |

相关日志

评论被关闭!