11
Any idea why a GIT repo would work only when using ssh://git@server.com/repo.git
and not also when using git@server.com/repo.git
?
It's a server setup by someone else so no idea how it was setup but on BitBucket or GitHub I can just use git@server.com/repo.git
and it works and clones the repo using SSH protocol. Any idea why for this server iy only works when using ssh://git@server.com/repo.git
?
So i need to add the ssh://
in front.
Does the server use an alternative SSH port? Like
ssh://git@server.com:2222/
– 7ochem – 2018-04-10T12:32:26.517No. It's 22. As
ssh://git@server.com/repo.git
works whilegit@server.com/repo.git
doesn't. I'm not adding the:port
in any cases. When I try withoutssh://
I getfatal: repository 'git@server.com/something/repo.git' does not exist
. Withssh://git@server.com/something/repo.git
it works. – daniels – 2018-04-10T12:41:57.993A configuration issue of some sort (maybe a firewall? username issue?) - I have a similar problem with a setup at my institution. However access via https works - so the solution is to use the rewrite rules from this thread: https://stackoverflow.com/questions/15589682/ssh-connect-to-host-github-com-port-22-connection-timed-out
– DetlevCM – 2018-04-10T16:00:31.697