I was wondering when connecting to a git repository, does the git+ssh protocol use the same port number as just using the git protocol. For example:

git://example.com/git/helloworld

git+ssh://root@example.com/git/helloworld

I am trying to push to a remote repository that has port forwarding setup on only the git protocol port number (9418) using EGit. When I try and use the git+ssh, EGit tells me

git+ssh://.... connection is closed by foreign host

Thanks,

Tomek

link|improve this question

75% accept rate
feedback

1 Answer

up vote 4 down vote accepted

git+ssh is git over the ssh client. As such it uses the SSH port (22) and not the git port.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.