ssh 连接不上报Connection closed by remote host

Posted zuozhengjun

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ssh 连接不上报Connection closed by remote host相关的知识,希望对你有一定的参考价值。

解决办法

(1)查看这两个文件是否有阻止
cat /etc/hosts.deny cat /etc/hosts.allow
(2)客户端连接数过多
修改/etc/ssh/sshd_config中#MaxStartups 10,将其改为MaxStartups 100
重启

 

以上是关于ssh 连接不上报Connection closed by remote host的主要内容,如果未能解决你的问题,请参考以下文章

Xshell ssh 连接后一段时间就掉线 Connection closed by foreign host

笔记处理ssh 连接后一段时间就掉线 Connection closed by foreign host

ssh报错No operations allowed after connection closed.Connection was implicitly clos

ssh_exchange_identification: Connection closed by remote host

在win7下,用securecrt连接虚拟机下的centos系统,老是出现Connection closed.ssh服务都开的?

关于putty连接服务器提示server unexpectedly closed connection解决方法