Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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 created a bare git repository and pushed to as root. Then I ran su myuser and ran the following commands:

$ whoami
$ mkdir t
$ cd t
$ git clone ssh://myuser@mybox.net:1234/git3

Cloning into git3...
myuser@mybox.net's password:
fatal: '/git3' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

$ git clone /home/myuser/git3
Cloning into git3...

Why is ssh failing? I can clone it by using the local path, and whoami shows myuser -- I am not root. Just to make sure I have the addr right I wrote ssh myuser@mybox.net -p 1234 by copy/pasting the info rather then typing it.

I don't understand why ssh isn't working. I know i had it working on this remote box, but I upgraded from debian lenny to squeeze and recently I made various config changes. I don't understand why I can't use git with ssh here.

share|improve this question
up vote 7 down vote accepted

erm, don't you need:

$ git clone ssh://myuser@mybox.net:1234/home/myuser/git3


share|improve this answer
sigh. That solved it. i KNOW i tried that already. I must have tried it before i thought of checking the folder permission (i accidentally made it root) – acidzombie24 Mar 31 '11 at 13:57
What a great UI. – Jürgen A. Erhard Oct 19 '12 at 10:59

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.