使用TortoiseGit时报错:No supported authentication methods available (server sent: publickey)

【问题描述】

在通过TortoiseGit执行push操作的时候,报错:

No supported authentication methods available (server sent: publickey)
使用TortoiseGit时报错:No supported authentication methods available (server sent: publickey)

【解决办法】

使用puttygen生成key公钥

使用TortoiseGit时报错:No supported authentication methods available (server sent: publickey)

点击generate生成公钥和私钥

使用TortoiseGit时报错:No supported authentication methods available (server sent: publickey)

执行一段时间之后如下

使用TortoiseGit时报错:No supported authentication methods available (server sent: publickey)

保存公钥和私钥到本地

使用TortoiseGit时报错:No supported authentication methods available (server sent: publickey)

我保存的位置

使用TortoiseGit时报错:No supported authentication methods available (server sent: publickey)

将公钥放到git账号上,路径:账号→settings→SSH and GPG keys

使用TortoiseGit时报错:No supported authentication methods available (server sent: publickey)

执行Add SSH key

使用TortoiseGit时报错:No supported authentication methods available (server sent: publickey)

进入本地的tortoisegit-->setting,设置私钥

使用TortoiseGit时报错:No supported authentication methods available (server sent: publickey)

再执行push的时候,就不会报错了。

使用TortoiseGit时报错:No supported authentication methods available (server sent: publickey)

--END--