Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:



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



share|improve this question
up vote 6 down vote accepted

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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