5

TortoiseGit using private key (non-root user)

view full story
linux-howto

http://serverfault.com – I have a debian server with some git repositories. I've generated two keys using keygen -t rsa That gave me root.pub and user.pub files. The root.pub was appended to /root/.ssh/authorized_keys and user.pub to /home/user/.ssh/authorized_keys. I've converted keys to putty format (ppk): root.ppk and user.ppk. Now I am able to login as both root and user with these keys using putty - everything works fine! The magic comes when it is about TortoiseGit (the latest release). I've set two remotes: [remote "user"] fetch = ... url = ssh://user@server/path puttykeyfile = C:\\path\\use (HowTos)