Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set up tortoisegit to not require password using ssh

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?

like image 900
Justin Pihony Avatar asked Apr 15 '12 15:04

Justin Pihony


People also ask

How do I authenticate TortoiseGit?

Try to pull from the remote repository. You will notice an authentication popup asking your username and password, the popup should be visually different from the default TortoiseGit popup. This is a good sign and means winstore works. Enter the correct authentication and the pull should succeed.

What is signing key ID in TortoiseGit?

The idea is: 1) You generate a keypair, 2) You export your public key and register it with your GitHub account, 3) You register it in your local Git configuration as "key id". Subsequent commits will be signed with that key. – paulsm4.

How do I change my TortoiseGit Git password?

Go to Credential Manager> Windows Credential in the system, there we can update the password.


Video Answer


2 Answers

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.

like image 133
CGRobinson Avatar answered Oct 17 '22 13:10

CGRobinson


Some Git servers are somewhat counterintuitive (IMHO) when it comes to authentication. For instance, Github docs say:

All connections must be made as the "git" user.

So, instead of trying to connect to ssh://<yourname>@github.com..., you have to connect to ssh://[email protected]....

I am not asked for a password any more and TortoiseGit now shows Success after completing a Push operation.

like image 5
O. R. Mapper Avatar answered Oct 17 '22 13:10

O. R. Mapper