0

I have a Windows 7 host machine in my office and I run Ubuntu 12.04 in a virtualbox. When I try ssh -T git@ssh.github.com I get ssh: connect to host ssh.github.com port 22: Connection timed out. However the network administrator says that port 22 and 443 are opened. I we open all the ports, it works, but this is not a solution in the long term.

Basically what I need to know is how can I identify what port is github using. My Network settings in virtualbox are attached to: NAT Adapter Type: Intel PRO/1000 MT Desktop cable connected, enabled Port Forwarding (no rules)

I tried Bridget adapter option to, but it didn't work.

Thanks in advance for any answer.

Katu
  • 1,296
  • 1
  • 24
  • 38
  • Do you have internet access in the VM? If not, this might be a duplicate of http://stackoverflow.com/questions/15117564/git-github-connection-issue-on-vm-virtualbox – supervacuo May 21 '14 at 16:24
  • Yes, I do have internet access and I can clone github repos with the http protocol. But not with git protocol. – Katu May 22 '14 at 06:58

1 Answers1

1

In that case, it sounds like a firewall is blocking the git protocol — you may be able to solve the issue by ensuring that port 9418 is also open.

The suggested solution from the linked article is to use HTTP or SSH instead; a recent SO answer notes that SSH and GIT are now very similar in terms of performance.

Community
  • 1
  • 1
supervacuo
  • 9,072
  • 2
  • 44
  • 61
  • Thanks. The port 9418 is also opened but that didn't help. I cannot use http as I'm using bitbake recipes and I would have to edit all of them to change it. I agree that it's a firewall problem. I just cannot agree with IT what port is git using, they keep saying that all the mentioned ports are always opened. – Katu May 22 '14 at 13:04
  • Can you telnet to that port from Windows? `telnet github.com 9418` (you may need to [install the telnet client](http://technet.microsoft.com/en-us/library/cc771275(v=WS.10).aspx) if you haven't already). If not, that's a pretty solid test case to go to your IT department with. If so, what about from the VM? I guess there's a chance VirtualBox or Windows themselves are firewalling it. – supervacuo May 22 '14 at 15:50
  • You are right. That command works for the machine that can clone git repos and it doesn't work for the one that cannot. Thanks for your help! – Katu May 22 '14 at 16:03