32

I was using Git with beanstalk in windows 7. Now I got new system with Windows 8.1. Now I configured Git and Tortoisegit with new system.Its working fine in local commit but when I pushed to live I got error:

Disconnected: No supported authentication methods available (Sever sent: public key)

I added SSH key and all? Is there any problem in Windows 8.1? Thanks

MrTux
  • 32,350
  • 30
  • 109
  • 146
SDF
  • 1,291
  • 1
  • 10
  • 13

9 Answers9

75

I opened TortoiseGit > Settings > Network and in section SSH client: I changed ssh.exe instead of TortoiseGitPlink.exe. Now it works fine.

Silvan
  • 156
  • 3
  • 13
SDF
  • 1,291
  • 1
  • 10
  • 13
  • 31
    _ssh.exe_ can be found in _C:\Program Files\Git\usr\bin_. – Ron Rebennack Jul 19 '16 at 11:15
  • 6
    _ssh.exe_ may also be found in _C:\Program Files (x86)\Git\bin\ssh.exe_ – justinl Nov 05 '16 at 06:49
  • 2
    In my case, this setting looks unchangeable at all. But there is one trick: one should re-install TortoiseGit and in the end of process (when installer will recommend you to make initial settings) select OpenSSH instead of TortoiseGitPlink.exe. This will give the required "ssh.exe" in the settings. – Jordan Dec 03 '17 at 08:30
  • 2
    ssh.exe is asking for the key passphrase every time. Can I make it ask only after reboot? (So it behaves the same way like TortoiseGitPlink.exe.) – Antonín Procházka Jun 02 '18 at 09:49
  • "use putty key" is disabled for me in tortoise clone when setting the path to the ssh.exe instead of tortoisegitplink.exe – daniel Jun 05 '18 at 18:21
  • 1
    There is no need to specify the full path to ssh.exe – MrTux Jan 07 '21 at 12:56
  • another easy way to change this is in the Settings > General > click button "Re-run First Start Wizard" and then in the step 5 you can select e.g. "OpenSSH". No re-install needed. – Silvan Oct 27 '22 at 16:00
13

Or run Putty authentication agent (Pageant.exe) from TortoiseGit folder (usually C:\Program Files\TortoiseGit\bin) and add PuttyKey manually to the app.

user7784804
  • 131
  • 1
  • 2
5

This error indicates that the server requires public key authentication and no key was provided by the client.

TortoiseGit by default uses TortoiseGitPLink (which is based on Putty Link).

Therefore it requires key to be stored in the putty format and also

  • configured in the putty session (cf. https://tortoisegit.org/docs/tortoisegit/tgit-ssh-howto.html) OR
  • loaded in putty agent (this is done by TortoiseGit if loading ssh keys is enabled; can also be done manually by starting Putty authentication agent (can be found in the Startmenu or in TortoiseGit installation folder) and then loading your key; also other alternatives such as KeePass KeyAgent integrations exist).

You can, however, also use OpenSSH, by setting the SSH client to ssh.exe on TortoiseGit -> Settings -> Network if you have a OpenSSH key configured.

MrTux
  • 32,350
  • 30
  • 109
  • 146
2

On windows 8.1 and TortoiseGit 2.1.0.0, changing SSH Client to just "ssh.exe" solved this issue.

Avinash Wable
  • 91
  • 1
  • 1
  • 5
2

check pageant.exe under C:\Program Files\TortoiseGit\bin is running. and add key

rafi wiener
  • 587
  • 1
  • 9
  • 19
1

TortoiseGit may, from time to time, unload your putty key.

Simply open TortoiseGit -> Settings -> Git -> Remote

Then reload your putty key for your chosen remote connection (e.g. origin)

1

For me this error was coming on windows 10. It was giving this error due to different project name on my local than git repo. After fresh clone it started working fine.

Juber
  • 11
  • 2
0

I received this error because my key agent (KeePass KeyAgent plugin) didn't have the correct key loaded anymore. Added the correct key and everything was fine.

magnoz
  • 531
  • 3
  • 11
0

In Windows, configured Pageant key is removed. So, I added freshly.

TortoiseGit-> Select Pageant -> You can add your private key that was previously saved.

It worked for me.