无法在sourcetree和github之间获得SSH密钥 [英] unable to get SSH keys working between sourcetree and github

查看:398
本文介绍了无法在sourcetree和github之间获得SSH密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我可以创建一个键并连接到github, .com / articles / generate-ssh-keys> https://help.github.com/articles/generating-ssh-keys



然而,当我尝试通过Sourcetree和腻子连接时,我不能。我已经尝试过:使用putty密钥生成器(SSH-2 RSA)生成新密钥
$ b



  1. 输入密码

  2. 保存私钥

  3. 保存公钥并添加.pub扩展名
  4. 将密钥从putty密钥生成器窗口复制/粘贴到github中
  5. 试图使用SSH克隆URL从我的本地回购库中的私人github存储库刷新分支from github

我也尝试打开github命令行指令生成的密钥,它希望我将它转换为putty类型我做了并且保存下来的钥匙,与那个一起尝试。也没有运气。



我做错了什么?

解决方案

为了使它工作,我结束了工具 - >选项 - > SSH客户端并将其更改为OpenSSH。我生成并上传了几种不同类型的密钥,试图让它工作,但我认为这是最终做到的。


I was able to create a key and connect to github following these instructions via the command prompt successfully:

https://help.github.com/articles/generating-ssh-keys

However, when I try to connect via Sourcetree and putty I cannot. I've tried:

  1. generating a new key with the putty key generator (SSH-2 RSA)
  2. entering a passphrase
  3. saving the private key
  4. saving the public key and adding a .pub extension
  5. copying/pasting the key from the putty key generator window into github
  6. attemping to refresh branches on a pull from my private github repository from my local repo using the SSH clone URL I got from github

I also tried opening the key generated from the github command line instructions and it wanted me to convert it to a putty-type key which I did and saved off, tried with that one. Also no luck.

What am I doing wrong?

解决方案

In order to get it worked I ended up going to Tools -> Options -> SSH Client and changing it to OpenSSH. I generated and uploaded several different types of keys trying to get it work as well but I think this is what finally did it.

这篇关于无法在sourcetree和github之间获得SSH密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆