ssh: connect to host github.com port 22: Connection timed out

前端 未结 17 2454
陌清茗
陌清茗 2020-12-04 05:25

I am under a proxy and I am pushing in to git successfully for quite a while.
Now I am not able to push into git all of a sudden.
I have set the RSA key and the prox

17条回答
  •  情话喂你
    2020-12-04 05:25

    Execute:

    nc -v -z  
    

    Your output should look like:

    "Connection to   port [tcp/*] succeeded!"
    

    If you get:

    connect to   (tcp) failed: Connection timed out
    

    You need to edit your ~/.ssh/config file. Add something like the following:

    Host example.com
    Port 1234
    

提交回复
热议问题