hexo d时kex_exchange_identification: Connection closed by remote host
现象:仅hexo d与ssh时会报错,git正常
错误信息:
1 | kex_exchange_identification: Connection closed by remote host |
在注释掉.ssh/config
里的这些后,变成了port 22
1 | Host github.com |
解决方法:Error while hexo d: kex_exchange_identification: connection closed by remote host_普通读者的博客-CSDN博客
modify the file ~/.ssh/config
1 | Host github.com |
Reference
https://docs.github.com/en/authentication/troubleshooting-ssh/using-ssh-over-the-https-port