ssh_exchange_identification: read: Connection reset by peer
2017-12-01 23:24
423 查看
最近为了抢自如的房子在京东云服务器上面跑爬虫脚本,今天突然无法登陆了,ssh 连接报错ssh_exchange_identification: read: Connection reset by peer,经过检查,我的 ip 被 deny 了.
要解决此问题,请进行如下配置检查和修改:
通过 云服务器控制台的管理终端 进入系统。
通过 cat 等指令查看 /etc/hosts.deny中是否包含类似如下配置:all:all:deny或者自己的出口 ip(通过 ip.cn 查看)
如果需要修改相关策略配置,在继续之前建议进行文件备份。
使用 vi 等编辑器,按需在 /etc/hosts.allow 中加入自己的 ip
all:ip 地址
在 /etc/hosts.deny中自己的ip整个删除或注释(在最开头添加 # 号)
再次本地终端 ssh尝试登录服务器恢复正常。
要解决此问题,请进行如下配置检查和修改:
通过 云服务器控制台的管理终端 进入系统。
通过 cat 等指令查看 /etc/hosts.deny中是否包含类似如下配置:all:all:deny或者自己的出口 ip(通过 ip.cn 查看)
如果需要修改相关策略配置,在继续之前建议进行文件备份。
使用 vi 等编辑器,按需在 /etc/hosts.allow 中加入自己的 ip
all:ip 地址
在 /etc/hosts.deny中自己的ip整个删除或注释(在最开头添加 # 号)
再次本地终端 ssh尝试登录服务器恢复正常。
相关文章推荐
- 由chmod改系统文件权限引ssh登录报ssh_exchange_identification: read: Connection reset by peer无法登陆问题
- ssh登录报ssh_exchange_identification: read: Connection reset by peer
- 由chmod改系统文件权限引ssh登录报ssh_exchange_identification: read: Connection reset by peer无法登陆问题
- ssh远程报错ssh_exchange_identification: read: Connection reset by peer
- ssh_exchange_identification: read: connection reset by peer
- SSH 总是出现ssh_exchange_identification: read: Connection reset by peer问题的解决方案
- linux ssh ssh_exchange_identification: read: Connection reset by peer
- ssh_exchange_identification: read: Connection reset by peer
- 连接Ubuntu 时 出错 ssh_exchange_identification: read: Connection reset by peer
- ssh_exchange_identification: read: Connection reset by peer
- ssh_exchange_identification: read: Connection reset by peer 报错解决办法
- 登录ssh提示:ssh_exchange_identification: read: Connection reset by peer error
- ssh远程报错ssh_exchange_identification: read: Connection reset by peer
- 【OpenStack】SSH登录虚拟机出现"Read from socket failed: Connection reset by peer"问题的解决办法
- 【OpenStack】SSH登录虚拟机出现"Read from socket failed: Connection reset by peer"问题的解决办法
- SSH error ( Read from socket failed: Connection reset by peer ) and it's solution
- ssh Read from socket failed: Connection reset by peer
- CentOS7使用ssh不能登录,报错:Read from socket failed: Connection reset by peer
- SSH error ( Read from socket failed: Connection reset by peer ) and it's solution
- SSH 错误解决案例1:Read from socket failed: Connection reset by peer