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
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服务就可以了.
但是,有时候在你修改后不久,仍然会出现/etc/hosts.deny自动修改,让你还是登录不了,此时需要检查denyhosts服务。
在redhat系列的版本中,有一个denyhosts服务,会自动覆盖/etc/hosts.deny文件,在确认要登录的机器没有问题时,可以简单做如下处理:
/etc/init.d/denyhosts stop
修改/etc/hosts.allow文件,加入 sshd:ALL。
(2) 但是还有一种情况,就是客户端连接数过多时,也会报这个错误。缺省情况下,SSH终端连接数最大为10个。在这种情况下,需要改SSH的配置文件,
解决方案:
1) 修改/etc/ssh/sshd_config中#MaxStartups 10,将其改为MaxStartups 1000
2) 重启SSH服务,/etc/init.d/ssh restart
转载于:https://www.cnblogs.com/gaobo543013306/p/9382867.html
ssh问题:ssh_exchange_identification: Connection closed by remote host相关推荐
- ssh_exchange_identification: Connection closed by remote host 问题的解决 (转)
今天,在win7下安装了Cygwin并安装了openssh, 在cygwin下配置并启动sshd,启动成功,但是(ssh localhost)连接时出现: ssh_exchange_identific ...
- ssh_exchange_identification: Connection closed by remote host解决方法
scp远程传输文件时发现报 ssh_exchange_identification: Connection closed by remote host 尝试ssh报相同的错误,首先telnet 22端 ...
- ssh_exchange_identification: Connection closed by remote host 解决方法
ssh_exchange_identification: Connection closed by remote host 解决方法 参考文章: (1)ssh_exchange_identificat ...
- coding ssh_exchange_identification: Connection closed by remote host
首先,强力吐槽coding.net.前段时间突然提交不上代码了.老是报错,一怒之下删除.ssh,然后重新根据官方文档配置,我是买的企业版,是付费的. 于是官方文档坑了 https://e.coding ...
- 解决Connection closed by remote host
昨天,在启动hbase服务的时候,突然一个节点出现了: ssh_exchange_identification:Connection closed by remote host. 改配置文件,改设置, ...
- Git 报错:Connection closed by remote host. fatal: Could not read from remote repository.
Git deploy 部署报错:ssh_exchange_identification: Connection closed by remote host. fatal: Could not read ...
- kex_exchange_identification: Connection closed by remote host Connection closed by 140.82.121.3 port
https://blog.csdn.net/hanhanwanghaha宝藏女孩 欢迎您的关注! 欢迎关注微信公众号:宝藏女孩的成长日记 如有转载,请注明出处(如不注明,盗者必究) 我在上传项目至远程 ...
- scp 远程拷贝 被拒 ” Connection closed by remote host“
修改方法: 修改/etc/hosts.allow文件,加入 sshd:ALL,然后重启sshd服务. 修改/etc/hosts.deny, 将 ALL: ALL 注释掉. 重启sshd sh /etc ...
- 【错误】kex_exchange_identification: Connection closed by remote hos
文章目录 错误描述 解决方法 错误描述 在 git push 的时候出现了下面这个错误 kex_exchange_identification: Connection closed by remote ...
最新文章
- 子组件自动执行方法_【自动化程序的最佳实践】 04 自动化程序的生命周期
- Date、DateFormat、Calendar日期类
- 扫地机器人的特点描写_扫地机器人的特点和作用
- resttemplate post提交json_SEO工具脚本,Python百度普通收录API提交工具
- debian9.8与主机共享问题
- 首次!阿里达摩院将Pure Transformer 应用于目标重识别ReID!
- [转]错误“AxImp.exe”已退出,代码为 -1163019603。
- 如何查看系统启动时间-
- 关键字:auto、static、register、const、volatile 、extern 总结
- 十几位资深架构师,整理了最新架构师学习体系,分享给大家......
- html图片随圆点下标轮播,基于JavaScript实现轮播图代码
- MATLAB关系运算符和逻辑运算符
- 选择Spring集成好的Spring Cloud Zuul方便更快
- Android——获取实时的手机屏幕四个点经纬度(百度地图)
- 苹果电脑恢复服务器上的安装器信息已被破坏,苹果电脑安装软件显示:映像数据已损坏的解决办法...
- timesat数据如何读取_判二手车调表车另类方法。如何利用OBD读取可靠数据(技术类)...
- java svg png_java batik svg转png报错,球大神!!!在线等
- Li Lei 和 Han Meimei该结婚了吧
- 用“意念”发Twitter,静脉植入脑机接口电极,渐冻症患者把思想转化为文字
- 产品读书《用户界面设计-有效的人机交互策略》
热门文章
- 机器学习和AI的Python基础
- 用于最优控制的简单软件
- ubuntu vim保存退出命令_【学员分享】程序员效率神器,最常用VIM插件安装大全...
- git 拉取 未能顺利结束 (退出码 1)_小白的 asyncio :原理、源码 到实现(1)
- C#初学的一些注意点
- python 热力图_python数据分析:数据缺失机制及利用missingno库对缺失可视化
- python print format_Python中的format格式化输出
- iphone储存空间系统怎么清理_系统项占用了 iPhone 过多的储存空间怎么办?
- python构造函数_Python构造函数
- vue3 el-form表单验证 自定义校验