#今天又看了啥 #今日故事 #运维 #GitHub
怎么 GitHub ssh 22 端口被墙了啊(怎么教育网也被干了,可恶
ssh: connect to host github.com port 22: Connection timed out
然后想起来还有个 443 端口可以用
git clone ssh://[email protected]:443/YOUR-USERNAME/YOUR-REPOSITORY.git
不过需要注意域名是 ssh.github.com 而不是 github.com
测试发现这个域名的 22 端口也可用(
To test if SSH over the HTTPS port is possible, run this SSH command:
$ ssh -T -p 443 [email protected]
> Hi USERNAME! You've successfully authenticated, but GitHub does not
> provide shell access.
https://docs.github.com/en/authentication/troubleshooting-ssh/using-ssh-over-the-https-port
怎么 GitHub ssh 22 端口被墙了啊(怎么教育网也被干了,可恶
ssh: connect to host github.com port 22: Connection timed out
然后想起来还有个 443 端口可以用
git clone ssh://[email protected]:443/YOUR-USERNAME/YOUR-REPOSITORY.git
不过需要注意域名是 ssh.github.com 而不是 github.com
测试发现这个域名的 22 端口也可用(
To test if SSH over the HTTPS port is possible, run this SSH command:
$ ssh -T -p 443 [email protected]
> Hi USERNAME! You've successfully authenticated, but GitHub does not
> provide shell access.
https://docs.github.com/en/authentication/troubleshooting-ssh/using-ssh-over-the-https-port