ssh_exchange_identification: read: Connection reset by peer
来源:互联网 发布:宽窄巷子附近景点 知乎 编辑:程序博客网 时间:2024/05/29 12:38
最近为了抢自如的房子在京东云服务器上面跑爬虫脚本,今天突然无法登陆了,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尝试登录服务器恢复正常。
阅读全文
0 0
- 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
- 服务器无法连接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无法登陆问题
- 由chmod改系统文件权限引ssh登录报ssh_exchange_identification: read: Connection reset by peer无法登陆问题
- fatal: read error: Connection reset by peer
- fatal: read error: Connection reset by peer
- Connection reset by peer
- Connection reset by peer
- Connection reset by peer
- Connection reset by peer
- socket在read时提示Connection reset by peer错误
- socket在read时提示【Connection reset by peer】错误
- Read from socket failed: Connection reset by peer
- ssh Read from socket failed: Connection reset by peer
- IDEA 激活
- linux中保证时间同步
- 希尔排序
- glibc libc glib的区别
- 推塔——自顶向下 逐步求精(洗衣机打野辅助输出)
- ssh_exchange_identification: read: Connection reset by peer
- 优化linux系统并防止入侵操作(修改内核参数)
- requests用法
- Two-Stream RNN/CNN for Action Recognition in 3D Videos-阅读笔记
- JavaScript语言基础(1)
- Add to List 561. Array Partition I
- 洛谷1012 拼数
- Spring实现原理分析(二十五).Spring Boot如何把application.*中的配置数据转换成对象
- leetcode 653. Two Sum IV