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?
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.
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.
Go to Credential Manager> Windows Credential in the system, there we can update the password.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With