Github端口号更改
ssh: connect to host github.com port 22: Connection refused
fatal: Could not read from remote repository.
在使用git时,如果报这个错误,说明端口可能被屏蔽了。此时需要在用户路径C:\Users\USERNAME\.ssh下的文件config中(如果没有需要新建)写入:
| Host github.com | 
即可。
另外可以使用以下语句检验其可用性:
| ssh -T git@github.com | 
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 云间!
 评论

