报错:port 22 Could not read from remote repository.

kex_exchange_identification: read: Connection reset by peer
Connection reset by 20.205.243.166 port 22
Could not read from remote repository.

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

继续用 SSH,但改端口到 443(绕过 22 被封的问题)
编辑 ~/.ssh/config 文件(没有就新建):

nano ~/.ssh/config

添加

Host github.com
  HostName ssh.github.com
  Port 443
  User git

保存后测试:

如果输出 Hi xxx! You've successfully authenticated, ... 就成功了。
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容