We’ve recently set up Gitolite server. All seems well. I can connect to it without a problem.
A new user has been set up, he’s on a Mac and trying to use SourceTree. The only way I could get him to connect was for him to attempt to ssh to the server and I typed in the password (exited afterwards). Without that the system kept asking for a password for that server.
Is this normal behaviour?
How do non-sysadmin users gain access to gitolite?
Gitolite is based on forced command, which means non-interactive session.
So:
(as detailed in “how gitolite uses ssh“).
So all he should need is a public key stored in
~/.ssh(making sure both hishomeand.ssharen’t group or world writable), registered ingitolite-admin/keysand published on the gitolite server.ssh/authorized_keysfile.From there, as mentioned in “Sourcetree and Gitolite“: