Github kex_exchange_identification Connection closed by remote host
问题描述
1  |  | 
解决方法
本地生成.pub文件
1  |  | 
会在C:\Users\admin\.ssh目录生成一个id_ed25519.pub文件,复制里面的内容。
Github 新建 SSH key
打开 Github,点击 Setting 如下图所示:
在 Setting 页面中找到 SSH and GPG keys 选项,新建 SSH key。
Title 内容任意,Key 文本框内填入 id_ed25519.pub
内的内容。
重新尝试上传。
如果仍然有上述错误提示可进行以下操作:
1  |  | 
Github kex_exchange_identification Connection closed by remote host
      https://blog.lfd.world/2023/05/31/github-kex-exchange/