git push/pull times out

后端 未结 4 576
[愿得一人]
[愿得一人] 2021-01-01 17:32

I can\'t git push/pull to github from my corporate vpn:

git push origin master
ssh: connect to host github.com port 22: Connection timed out
fatal: The remot         


        
4条回答
  •  一整个雨季
    2021-01-01 18:21

    Increase the ssh connection timeout in your machine.

    Create ~/.ssh/config file (if it doesn't exist).

    Add SSH ServerAliveInterval ServerAliveCountMax settings into the file, eg:

    Host *
         ServerAliveInterval 86400
         ServerAliveCountMax 4
    

    Tested on Ubuntu 18.04.4 LTS through vpn.

    See more at here

提交回复
热议问题