Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disconnected: No supported authentication methods available (server sent publickey)

I received a new laptop a month ago, configured Git and TortoiseGit, and things were working fine. Until I had to reboot the laptop. I put it to sleep, but some Windows updates required a restart.

After the restart, pull using TortoiseGit throws message in the subject.

Windows 7 + TortoiseGit 2.5

My Git Bash works fine. I can clone, pull, push. No issues.

Reading Disconnected : No supported authentication methods available (server sent :publickey), I've tried many things, including creating .profile, adding keys in Pageant.

I tried to change C:\Program Files\TortoiseGit\bin\TortoiseGitPlink.exe to ssh.exe but TortoiseGit doesn't allow me to do that. Config field is enabled, and I can type in there, but neither OK nor Apply consume this change. I have gone as far as uninstall and installed on TortoiseGit 2.5 - still no luck.

In my environment, Putty keys are placed on a network drive. I was told to reboot in case there were issues there. I see my network drives just fine, and I have rebooted several times - just in case.

Again, my Git Bash is still working just fine.

Any other things to consider?

like image 255
user9004433 Avatar asked Mar 08 '23 12:03

user9004433


1 Answers

Issue: "Disconnected: No supported authentication methods available (server sent publickey)"

Solution:

  1. Right-click the repo folder -> TortoiseGit-> Settings-> Network

  2. Change the SSH client to C:\Program Files\Git\usr\bin\ssh.exe if you installed the Git

like image 150
AnandMohan Avatar answered Mar 10 '23 11:03

AnandMohan