Git: ssh: connect to host github.com port 22: Connection refused 的处理

git 无法提交代码到github;

查资料发现:

命令行运行: sudo gedit /etc/hosts

添加一行代码就可以了。

后面直接可以了。

posted @ 2022-05-28 21:48  是豆腐啊  阅读(187)  评论(0编辑  收藏  举报