首页 > 其他分享 >SSH Error | kex_exchange_identification: Connection closed by remote host Connection closed by 20.20

SSH Error | kex_exchange_identification: Connection closed by remote host Connection closed by 20.20

时间:2023-03-20 17:44:55浏览次数:44  
标签:243.166 22 Connection identification closed kex port

运行$ ssh -T [email protected]报错:

kex_exchange_identification: Connection closed by remote host
Connection closed by 20.205.243.166 port 22

解决方案:

  1. 检查公钥是否过期
  2. 是否使用代理软件(TUN模式代理全局),进而导致本地端口号指向放生改变

方案一: 切换为远程URL为HTTPS,不使用SSH
方案二: 建立配置文件 config 在目录~/.ssh/下,把端口指向443

Host github.com
Hostname ssh.github.com
Port 443

参考
CSDN

标签:243.166,22,Connection,identification,closed,kex,port
From: https://www.cnblogs.com/delongzhang/p/17237122.html

相关文章