最近为了抢自如的房子在京东云服务器上面跑爬虫脚本,今天突然无法登陆了,ssh 连接报错ssh_exchange_identification: read: Connection reset by peer,经过检查,我的 ip 被 deny 了.
要解决此问题,请进行如下配置检查和修改:
通过 云服务器控制台的管理终端 进入系统。
通过 cat 等指令查看 /etc/中是否包含类似如下配置:all:all:deny或者自己的出口 ip(通过 查看)
如果需要修改相关策略配置,在继续之前建议进行文件备份。
使用 vi 等编辑器,按需在 /etc/ 中加入自己的 ip
all:ip 地址
在 /etc/中自己的ip整个删除或注释(在最开头添加 # 号)
再次本地终端 ssh尝试登录服务器恢复正常。
相关文章
- ssh 连接机器时报错 ssh_exchange_identification: read: Connection reset by peer. 或者 Connection timed out dur
- 【Docker】错误: read tcp xxx->xxx: read: connection reset by peer
- ssh_exchange_identification: read: Connection reset by peer
- Docker: connection reset by peer
- Connection reset by peer的常见原因及解决办法
- : Connection reset by peer
- 分析connection reset by peer, socket write error错误原因
- 登录SFTP,报错 Connection to XXX port 22: Broken pipe Couldn‘t read packet: Connection reset by peer
- Connection reset by peer的常见原因及解决办法
- connection reset by peer问题总结及解决方案