觉得有用的话,欢迎一起讨论相互学习~

[转]sourcetree提示ssh密钥认证失败[转]sourcetree提示ssh密钥认证失败[转]sourcetree提示ssh密钥认证失败[转]sourcetree提示ssh密钥认证失败

[转]sourcetree提示ssh密钥认证失败

不多说废话,直接上解决方法:

前提是你的电脑已经装了git工具,然后创建好了.ssh 文件,创建.ssh 文件 方法是在任何地方点击右键 选择git bash here 输入ssh-keygen,然后一直回车就创建好了。选择用记事本打开.ssh 文件的id_rsa.pub文件,复制里面所有东西到你的远程仓库的sshKeys,例如阿里云,GitHub等

解决方法:

修改SSH客户端配置

【工具】-【选项】-【一般】,将默认的SSH客户端-PuTTY/Plink改为OpenSSH,把它选择为OpenSSH SSH密钥自动会适配到当前id_rsa文件,点击确定。然后再重新点击【推送】就可以了。

[转]sourcetree提示ssh密钥认证失败

-------------------------------------ps 备注-------------------------------------------------------------

1. .ssh文件夹目录在c:\users\用户名\下。

2. GitHub添加sshKey的步骤

登录https://github.com,点击【头像】-【settings】

[转]sourcetree提示ssh密钥认证失败

点击【SSH and GPG keys】-【news SSH key】

[转]sourcetree提示ssh密钥认证失败

然后填写title名,key里面写.ssh 文件的id_rsa.pub文件里面的内容,点击【Add SSH key】

[转]sourcetree提示ssh密钥认证失败

相关文章:

  • 2021-12-02
  • 2022-12-23
  • 2022-03-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-18
  • 2021-07-04
猜你喜欢
  • 2021-11-09
  • 2021-12-07
  • 2021-07-09
  • 2021-05-03
  • 2022-12-23
  • 2021-07-25
  • 2022-12-23
相关资源
相似解决方案