Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer 1

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: vafer.org/blog/20080115011413 –  voretaq7 May 12 '10 at 18:27
add comment

Your Answer

 
discard

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.