git clone hangs forever on github

前端 未结 8 1345
一生所求
一生所求 2020-12-03 04:26

When I follow point 5 (Test everything out) in the github guide, the ssh command also hangs forever. According to the guide, I should be presented with a message that \"Gith

相关标签:
8条回答
  • 2020-12-03 05:07

    In my case port 22 was being blocked by a firewall, cloning via https may not work if you have 2-factor authentication enabled. Instead edit your .ssh config to use another port. In your terminal:

    nano ~/.ssh/config
    

    then add this:

    Host github.com
      Hostname ssh.github.com
      Port 443
    
    0 讨论(0)
  • 2020-12-03 05:13

    I think I found the error. The WiMAX router I am using, messes SSH up. After trying another internet connection, it went smooth. The WiMAX router is branded "Alvarion", and according to a Danish Google Group the NAT implementation is broken in the router: http://groups.google.com/group/openspaceaarhus/browse_thread/thread/e99d96122a0522b7.

    I have contacted the internet supplier to look into this. If they prove it has nothing to do with their router I will post it here.

    Thank you all for your comments, which made me realise it maybe was an infrastructure problem.

    0 讨论(0)
提交回复
热议问题