connect to host ssh.github.com port 22: Connection timed out解决方法
文章目录
ssh: connect to host ssh.github.com port 22: Connection timed out
ssh:连接到主机github.com端口22:连接超时
提示:连接到主机git@github.com端口20超时~~~
百度之后,可能是端口被占用;
解决办法:
在./ssh 下找到congfig文件,如果没有就创建一个
在config文件中复制下面代码:
Host github.com
User git
Hostname ssh.github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
Port 443
然后在执行
ssh -T git@github.com 查看是否可以链接;
成功

评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论