0
点赞
收藏
分享

微信扫一扫

go get Failed to connect to github.com port 443: connection timeout

海牙秋天 2022-11-04 阅读 106


1.在ssh配置/etc/ssh/ssh_config文件最后,加入一下内容

Host github.com
User git
Hostname ssh.github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
Port 443

2.由于使用代理,需要设置

git config --global http.proxy 'socks5://127.0.0.1:20800'
git config --global https.proxy 'socks5://127.0.0.1:20800'

3.如果出现代理设置失败,可以撤销

git config --global --unset http.proxy

 

举报

相关推荐

0 条评论