GitHub错误修复kex_exchange_identification
今天,在终端里运行命令,上传Github博客内容,结果出现以下错误:
kex_exchange_identification: read: Connection reset by peer
Connection reset 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 -R 20.205.243.166
# Host 20.205.243.166 found: line 18
/Users/name/.ssh/known_hosts updated.
Original contents retained as /Users/name/.ssh/known_hosts.old
科学上网后,就正常了。
➜ ssh -T git@github.com
Hi xiaoledeng! You've successfully authenticated, but GitHub does not provide shell access.