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!
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 :-)