ssh连接报错“kex_exchange_identification: read: Connection reset by peer”_ide

 

已经被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也行了

深层原因有待解决

个性签名:时间会解决一切