Github (SSH) via public WIFI, port 22 blocked

前端 未结 6 1264
忘了有多久
忘了有多久 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:29

    No need to modify the ~/.ssh/config. You can add another remote repository via git remote add ...

    // github
    git remote add ssh://git@ssh.github.com:443/repo/name.git
    
    // gitlab
    git remote add ssh://git@altssh.gitlab.com:443/repo/name.git
    

提交回复
热议问题