Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Authentication error when pushing to remote Git repo with TortoiseGit

When I try an push to my remote repo (Unfuddle) using TortoiseGit, my favourite tool, I get the following error. I then open GitGUI and am able to push with no problem. I have gathered through some googling that pageant needs to be running for some PuTTY variants, and it is running. Where do I look next?

No supported authentication methods available (server sent: publickey)

like image 764
ProfK Avatar asked Jul 11 '11 15:07

ProfK


People also ask

How do I fix Git failed to authenticate to remote?

The “fatal: Authentication failed” error message Instead you need to generate a personal access token. This can be done in the application settings of your Github account. Using this token as your password should allow you to push to your remote repository via HTTPS. Use your username as usual.

How do I link TortoiseGit to GitHub?

Use the TortoiseGit Puttykey generator to create a new keypair add your public key to GitHub. Clone/create a new repository. In thee Tortoise repository settings, set your fullname and email. Then in remote menu under the Git configuration menu enter your clone URL and select your PuTTY key.

How do I update my TortoiseGit credentials?

Right click → TortoiseGit → Settings → Git → Credential. Save this answer.

How do I connect to TortoiseGit?

We'll need to configure TortoiseGit - to do this, right click anywhere on your Desktop, select TortoiseGit and then Settings. Find Git and then click on Config from the menu on the left. Then fill in your Name and Email, making sure to use the same email that you used to sign up for Assembla.


1 Answers

I had the same problem.

I think the problem was that my Putty key was not set in my TortoiseGit Settings. I had to convert my bitbucket repository private key to a putty private key (.ppk file).

This is how I fixed it:

  • I downloaded puttygen.exe

  • I opened puttygen

  • I clicked Conversions -> Import key -> (imported my "~/.ssh/id_rsa" key)
  • I confirmed my key passphrase
  • I clicked "Save private key" and saved the key in my "~/.ssh/" folder
  • I went in my TortoiseGit settings : (right click on my master folder) -> TortoiseGit -> Settings -> Git -> Remote -> origin -> Putty key -> ... -> (I added my newly generated putty private key)

And voilà, I was able to push to my origin repository.

like image 88
Michael Fayad Avatar answered Oct 15 '22 19:10

Michael Fayad