Linux expect问题集:ssh_exchange_identification: Connection closed by remote host
来源:互联网 发布:淘宝图片轮播图片尺寸 编辑:程序博客网 时间:2024/05/12 00:26
出现此问题可能有几个原因:
1.远程服务器将你的IP地址加入到了/etc/hosts.deny文件中
我就是这样的,同样的脚本,前面几次执行时正常,后面就开始报这个错。(不知道是不是通过ssh连接太频繁的原因)
解决办法:
删除deny文件中的IP地址或者将该IP地址加入到/etc/host.allow文件中
如果通过以上设置,还报这个错,停止denyhosts服务。denyhosts的会自动覆盖hosts.deny文件
2.通过ssh连接到服务器的人数过多,超出了设置的最大值。
解决方法:
修改ssh的最大连接数
vi /etc/ssh/sshd_config
找到下面的行:
#MaxStartups 10:30:100
默认正常连接数是10个,取消注释行,将其中的10修改为其他的值
MaxStartups 15:30:100
注:
10:30:100表示的意思是,从第10个连接开始,以30%的概率(递增)拒绝新的连接,直到连接数达到100
0 0
- 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
- ssh问题: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
- 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
- SSH连接服务器报ssh_exchange_identification: Connection closed by remote host
- Junipor交换机 ssh_exchange_identification: Connection closed by remote host
- Solving LCM[C0n,C1n,…,Cnn]
- Python中类、实例和类方法、静态方法、实例方法的关系
- poj2828 Buy Tickets
- Ubuntu 下安装 R
- vs2010调试项目时提示 无法直接启动带有"类库输出类型"的项目解答
- Linux expect问题集:ssh_exchange_identification: Connection closed by remote host
- SqlServer2008 数据库同步的两种方式 (发布、订阅)
- 网页样式(css+js)tab自动切换的minisite
- Gingerbread中 GPS jni 接口分析
- WCF实例
- 【1】Apache HTTP Server与Apache Tomcat 的英文定义以及使用区别?
- fastjson的部分使用
- 最长连续公共最长子序列
- 类的方法及调用