Github ssh的連線問題

rayliao發表於2022-05-30
kex_exchange_identification: Connection closed by remote host
Connection closed by 127.0.0.1 port 7890
fatal: Could not read from remote repository.

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

or

ssh: connect to host github.com port 22: Connection refused
fatal: Could not read from remote repository.

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

解決辦法:在.ssh/config的host配置加上

HostName ssh.github.com
Port 443

相關文章