3

I created a bare git repository and pushed to as root. Then I ran su myuser and ran the following commands:

$ whoami
myuser
$ mkdir t
$ cd t
$ git clone ssh://[email protected]:1234/git3

Cloning into git3...
[email protected]'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...
done.

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 [email protected] -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.

1 Answer 1

6

erm, don't you need:

$ git clone ssh://[email protected]:1234/home/myuser/git3

??

2
  • 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) Commented Mar 31, 2011 at 13:57
  • 1
    What a great UI. Commented Oct 19, 2012 at 10:59

You must log in to answer this question.