Git prompts Disconnected: No supported authentication methods available (server sent: publick) error when pulling

 

Get your own project from a remote server through Git, but when you push through TortoiseGit, it prompts Disconnected: No supported authentication methods available (server sent: publickey) error, but there is no error in GitBash. It is a TortoiseGit configuration problem and needs to be set. TortoiseGit SSH configuration, the configuration method is as follows:

Right-click the updated Git project and select TortoiseGit - Settings. In the pop-up dialog box, click NetWork. Configure the SSH Client item in the area on the right as the usr/bin/ssh.exe file (or bin/ssh.exe) in the Git installation directory. Note that it is under the Git installation directory. In addition, the location of the ssh.exe file may be different for different git versions, but it will always be in the Git installation directory, so you can search through the Windows Explorer search function. I searched on the Internet They are all bin/ssh.exe, but they are not found. Then I searched it myself and found it in usr/bin/ssh.exe.

After the configuration is complete, click push and submit it to the remote server normally.

Guess you like

Origin blog.csdn.net/qq_30960647/article/details/105962852