1
2
3
4
5
6
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.

生成:ssh-keygen -t ed25519 -C "备注tliy"

~/.ssh/config 里新增:

1
2
3
4
Host github.com
HostName ssh.github.com
User git
Port 443

验证:ssh -T [email protected]

1
2
3
4
5
6
7
ssh -T [email protected]
The authenticity of host '[ssh.github.com]:443 ([20.205.243.160]:443)' can't be established.
ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '[ssh.github.com]:443' (ED25519) to the list of known hosts.
Hi lvxianchao! You've successfully authenticated, but GitHub does not provide shell access.