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 have a Snow Leopard box, where I have gitosis installed (Warning: noob alert), added a git user and I am able to remotely login to the machine with ssh. Locally, I can 'clone' my created repositories, as I can 'clone' the gitosis-admin too. Works perfect.

I clone these using the 'git' user.

git clone git@my-remote-machine:reponame.git

remotely logged in, what doesn't work:

git clone git@localhost:reponame.git

However on that same remote machine where the repositories live, I can't clone from the localhost. It asks for a password, which wasn't created as far as I know. What am I doing wrong?

Thank you for your replies!

share|improve this question
up vote 1 down vote accepted

Since you're getting a password prompt it sounds like you don't have an SSH key set for your user (or if you do it's not one that gitosis recognizes). gitosis requires SSH keys (that it recognizes & has configured for access) in order for it to give you access to the repositories.

It's also possible you created a SSH key with a password, but I hope you'd know if you did that :-)

share|improve this answer
so this means i have to create a SSH key for the local user with sshkeygen. And this key in its turn has to be added to keydir of the administration tool? – Shyam May 12 '10 at 18:12
Yup - See the gitosis docs & also this excellent blog article on getting gitosis set up for full details: – voretaq7 May 12 '10 at 18:27

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.