解决 connect to host github.com port 22 operation timed out
生活随笔
收集整理的這篇文章主要介紹了
解决 connect to host github.com port 22 operation timed out
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
本來(lái)好好地.不知道為什么不能push了.估計(jì)是被墻,于是搜搜解決辦法.改換端口
參考 https://mozillazg.com/2015/08/use-443-port-fix-github-connection-timeout.html
參開(kāi): https://help.github.com/articles/using-ssh-over-the-https-port/
修改 ~/.ssh/config 中 github.com 的配置,?Hostname?改為?ssh.github.com,?Port?改為?443:
如果沒(méi)有config文件就手動(dòng)創(chuàng)建一個(gè)
1 Host github.com 2 Hostname ssh.github.com 3 Port 443測(cè)試
ssh -T git@github.com The authenticity of host '[ssh.github.com]:443 ([xxx.xxx.xxx.xxx]:443)' can't be established. RSA key fingerprint is SHA256:xxxxxxxx.... Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '[ssh.github.com]:443,[xxx.xxx.xxx.xxx]:443' (RSA) to the list of known hosts. Hi unixc3t! You've successfully authenticated, but GitHub does not provide shell access.?
轉(zhuǎn)載于:https://www.cnblogs.com/or2-/p/6185917.html
總結(jié)
以上是生活随笔為你收集整理的解决 connect to host github.com port 22 operation timed out的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 集合内存管理
- 下一篇: Java ArrayList和Vec