How to set up tortoisegit to not require password using ssh

Justin Pihony picture Justin Pihony · Apr 15, 2012 · Viewed 25.9k times · Source

I am having trouble getting git/tortoisegit to use my supplied ssh key (created using PuttyGen). In the command prompt I get a permission denied error, and in the TortoiseGit UI I get prompted for a password. I tried this SO question, but as stated, I created with PuttyGen, have Pageant running with my keys loaded, and am configured to use TortoisePlink.

I then found this SO question, and tried to use the ssh in the git directory, the TortoisePlink in my TortoiseHG (used for Bitbucket/Mercurial), and as stated, had already tried the local TortoisePlink in TortoiseGit.

Oh, and I did set up my ppk in my Git account, as well as, in the Git->Remote section of TortoiseGit

So, what am I missing?

Answer

CGRobinson picture CGRobinson · May 14, 2013

Check what your origin url is.

Right click on your project folder TortoiseGit -> Settings -> Choose Git -> Remote and select the origin entry.

Check that the url starts with ssh:// and that your private key is loaded.

If the url starts with https:// then it will ask you for your password every time.

Hope this helps.