SSH连接服务器报ssh_exchange_identification: Connection closed by remote host
2015-02-02 16:58
1111 查看
下午发现公司有台图片服务器不能SSH远程连接了,从内网的其它服务器上ssh也不能连接,都是报:ssh_exchange_identification: Connection closed by remote host
众所周知的原因,现在google搜索不翻墙暂时用不了,用百度搜索都不是想要的,让同事翻墙用google搜索到了,立马找到了 http://www.lao8.org/article_1319/ssh 这篇文章。
没办法,给机房打电话,先让帮重启下,重启后ssh能连接了,果断把ssh连接数改大了。
# vi /etc/ssh/sshd_config
# MaxSessions 10
去掉前面的"#" 并把数字改大,我先改为60了,最后重启service sshd reload然后重新连接即可.
附:
who
如果想要断开某个ssh 用户 可以在命令行输入
ps aux |grep sshd
得到pid 再用命令关闭那个pid:
kill -111
不得不再喷下百度:百度在搜索技术类的文章方面远远比不上google!百度在搜索技术类的文章搜索出来的都是屎级别的...除了转载还是转载的...而且绝大部分转载的内容一样...
众所周知的原因,现在google搜索不翻墙暂时用不了,用百度搜索都不是想要的,让同事翻墙用google搜索到了,立马找到了 http://www.lao8.org/article_1319/ssh 这篇文章。
没办法,给机房打电话,先让帮重启下,重启后ssh能连接了,果断把ssh连接数改大了。
# vi /etc/ssh/sshd_config
# MaxSessions 10
去掉前面的"#" 并把数字改大,我先改为60了,最后重启service sshd reload然后重新连接即可.
附:
查看Linux服务器有多少个用户连接ssh的方法
命令行输入who
如果想要断开某个ssh 用户 可以在命令行输入
ps aux |grep sshd
得到pid 再用命令关闭那个pid:
kill -111
不得不再喷下百度:百度在搜索技术类的文章方面远远比不上google!百度在搜索技术类的文章搜索出来的都是屎级别的...除了转载还是转载的...而且绝大部分转载的内容一样...
相关文章推荐
- 使用xshell连接服务器问题:ssh_exchange_identification: Connection closed by remote host
- ssh连接其他主机时候ssh_exchange_identification: Connection closed by remote host
- ssh_exchange_identification: Connection closed by remote host 问题的解决
- 【转载】 ssh_exchange_identification: Connection closed by remote host
- ssh_exchange_identification: Connection closed by remote host
- ssh_exchange_identification: Connection closed by remote host
- ssh_exchange_identification: Connection closed by remote host
- ssh_exchange_identification: Connection closed by remote host
- ssh_exchange_identification: Connection closed by remote host
- ssh_exchange_identification: Connection closed by remote host
- ssh问题:ssh_exchange_identification: Connection closed by remote host
- ssh/scp:ssh_exchange_identification:Connection closed by remote host的问题
- ssh_exchange_identification: Connection closed by remote host
- ssh_exchange_identification: Connection closed by remote host
- ssh_exchange_identification: Connection closed by remote host
- ssh_exchange_identification: Connection closed by remote host
- ssh_exchange_identification: Connection closed by remote host 问题的解决 (转)
- Linux expect问题集:ssh_exchange_identification: Connection closed by remote host
- ssh_exchange_identification: Connection closed by remote host
- ssh问题:ssh_exchange_identification: Connection closed by remote host