0


Linux 链接 GitHub 出现 Connection timed out

问题

安装

GIT

并完成公钥验证:Linux 系统拉取 Github项目

[root@xxx devtools]# ssh -T [email protected]
ssh: connect tohost github.com port 22:Connection timed out

解决方案

进入在存放公钥私钥

id_rsa.pub

文件里,新建/修改

config

文本

[root@xxx myblog]# cd ~/.ssh
[root@xxx]# vim config
config

中的内容如下:

Host github.com
User [email protected] ssh.github.com
PreferredAuthentications publickey
IdentityFile~/.ssh/id_rsa
Port443

重新验证成功

[root@xxx]# ssh -T [email protected] authenticity of host '[ssh.github.com]:443 ([20.205.243.160]:443)' can't be established.
ECDSA key fingerprint is SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM.
ECDSA key fingerprint is MD5:7b:99:81:1e:4c:91:a5:0d:5a:2e:2e:80:13:3f:24:ca.
Are you sure you want tocontinue connecting (yes/no)? yes
Warning:Permanently added '[ssh.github.com]:443,[20.205.243.160]:443'(ECDSA)tothe list of known hosts.
HiProgrammerAdvanced!You've successfully authenticated, but GitHub does not provide shell access.
标签: linux github 运维

本文转载自: https://blog.csdn.net/zhengzhaoyang122/article/details/135903885
版权归原作者 程序猿进阶 所有, 如有侵权,请联系我们删除。

“Linux 链接 GitHub 出现 Connection timed out”的评论:

还没有评论