ssh 突然不可用 (kex_exchange_identification: Connection closed by remote host

参考

kex_exchange_identification: Connection closed by remote host

1
2
3
4
5
6
7
8
$ git clone git@github.com:bazijun/myBlogCode.git
Cloning into 'myBlogCode'...
kex_exchange_identification: Connection closed by remote host
Connection closed by 20.205.243.166 port 22
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

依次输入

1
2
3
4
5
6
7
8
9
rm -rf ~/.ssh/id_ed25519 ~/.ssh/id_ed25519.pub

ssh-keygen -t ed25519 -C "1324022569@qq.com"

ssh-agent bash

ssh-add ~/.ssh/id_ed25519

clip < ~/.ssh/id_ed25519.pub


本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!