解决ssh连接问题2

ssh远程出现问题
shell request failed on channel 0

1.修改/etc/security/limits.conf

 

ssh_exchange_identification: read: Connection reset by peer

2.原因分析
服务器的连接数太多,很容易达到ssh的连接上限。当达到连接上限时,新的ssh连接请求将会被拒绝,除非有其它ssh断开。

解决方案
ssh登录服务器,修改ssh配置文件:
vi /etc/ssh/sshd_config
-MaxStartups 10
+Max Startups 50

 

posted @ 2017-09-21 12:03  larlly  阅读(914)  评论(0编辑  收藏  举报