github ssh connection failed

ssh -T [email protected]
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
SHA256:uNiVztksCsDhcc0u9e8BujQXVUpKZIDTMczCvj3tD2s.
Please contact your system administrator.
Add correct host key in C:\\Users\\zhang/.ssh/known_hosts to get rid of this message.
Offending RSA key in C:\\Users\\zhang/.ssh/known_hosts:1
Host key for github.com has changed and you have requested strict checking.
Host key verification failed.

Failed to connect to github through ssh, delete the github-related entries in known_hosts! ! ! !

try again

ssh -T [email protected]
The authenticity of host 'github.com (20.205.243.166)' 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 'github.com' (ED25519) to the list of known hosts.
Hi novaCoder-zrk! You've successfully authenticated, but GitHub does not provide shell access.

When trying to pull the github repository connected through ssh, an error is reported.

git pull 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.

First delete all related github in known_hosts known_hosts .old in the .ssh folder. Then execute the following statement:

ssh -T [email protected]

The authenticity of host ‘github.com
(20.205.243.166)’ can’t be established. ED25519 key fingerprint is
********8. This key is not
known by any other names Are you sure you want to continue connecting
(yes/no/[fingerprint])? yes Warning: Permanently added ‘github.com’
(ED25519) to the list of known hosts. Hi *******! You’ve
successfully authenticated, but GitHub does not provide shell access.

When deleting a remote mirror, add a new remote

 git branch --set-upstream-to=origin/master

Connect the local and remote mirrors.

Then git pull

Guess you like

Origin blog.csdn.net/greatcoder/article/details/130518238
Recommended