无法在sourcetree和github之间获得SSH密钥 [英] unable to get SSH keys working between sourcetree and github
问题描述
然而,当我尝试通过Sourcetree和腻子连接时,我不能。我已经尝试过:使用putty密钥生成器(SSH-2 RSA)生成新密钥
$ b
-
- 输入密码
- 保存私钥
- 保存公钥并添加.pub扩展名
- 将密钥从putty密钥生成器窗口复制/粘贴到github中
- 试图使用SSH克隆URL从我的本地回购库中的私人github存储库刷新分支from github
- 将密钥从putty密钥生成器窗口复制/粘贴到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:
- generating a new key with the putty key generator (SSH-2 RSA)
- entering a passphrase
- saving the private key
- saving the public key and adding a .pub extension
- copying/pasting the key from the putty key generator window into github
- 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屋!