ssh连接报错“kex_exchange_identification: read: Connection reset by peer”_远程服务器

已经被VScode ssh毒死好几次了,都是执行命令意外中断,然后又VSCode里连不上、本机Terminal也连不上了。。。

重启远程服务器,VSCode可以连上了,

系统ssh还是不行,报错“kex_exchange_identification: read: Connection reset by peer”

参考 ssh连接失败,排错经验,

1. 在 /etc/hosts.allow 中添加 sshd: ALL

2. 然后重启ssh,service sshd restart

ok,直接执行ssh也行了

深层原因有待解决

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐