一、github默认端口22被占用,出现github 连接错误
kex_exchange_identification: read: Connection reset by peer
Connection reset by IP port 22
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
二、修改方法
切换到 cd ~/.ssh/
进入到~目录下面的.ssh下面,新建config文件,添加以下配置:
Host github.com /*服务器地址为github地址*/
User "XXX@XX.com" /*github上的注册邮箱为用户账号*/
Hostname ssh

本文介绍了解决GitHub默认端口22被占用导致连接失败的问题,提供了通过修改SSH配置文件来更改连接端口的方法。
最低0.47元/天 解锁文章
2627

被折叠的 条评论
为什么被折叠?



