Github (SSH) via public WIFI, port 22 blocked

前端 未结 6 1285
忘了有多久
忘了有多久 2020-12-04 05:11

I\'m currently on a public WIFI spot and I\'m unable to use SSH (they probably blocked that port). However, I need that connection to do a git push.

<         


        
6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-04 05:43

    Try this:

    $ vim ~/.ssh/config
    

    Add

    Host github.com
      Hostname ssh.github.com
      Port 443
    

    Source: https://help.github.com/articles/using-ssh-over-the-https-port

提交回复
热议问题