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

Alright, quick question.

When SSHing to a server using the IP, I can also specify a path to use, such as:

git clone ssh://git@ SomeProject

However, when using a hostname, the command thinks the path is part of the host name:

git clone ssh:// SomeProject

Which yields an error about the : before the path

ssh: no address associated with name

(Yes, I am aware that I cannot SSH into

Is there a way to specify the path as in the IP example, but with a hostname?


share|improve this question
up vote 4 down vote accepted

Why did you decide that a Git SSH URI must have a : after a hostname? Where did you see this format?

Formal SSH-URI specification is

share|improve this answer
It's derived from scp notation. – Jan Marek Jan 26 '12 at 8:54
That is the strangest thing.... I seriously could not get it working until now. One of those days, I guess. Thanks! – Qix Jan 26 '12 at 8:54

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.