使用 SSH 密钥访问 Sourcetree 中的组织存储库
Using SSH Keys to get access to organizations repository in Sourcetree
我使用 github 和我自己的帐户,我是一些组织的成员。我设置了一个 SSH 密钥以通过 sourctree 连接到 github。
到目前为止一切顺利,当我想添加远程存储库时,我只需浏览我的存储库列表即可。
不幸的是,我无法从组织存储库中进行选择,我什至将自己添加为协作者,尽管我拥有管理员权限,甚至自己创建了存储库。
我怎样才能让它工作,我也可以从我的组织回购协议中选择?
(我在另一个线程中发现了一个指向此的 link:https://gist.github.com/jexchan/2351996 但我认为这略有不同,不是吗?)
提前致谢。
干杯
编辑:我也认为这可能指向正确的方向:
unable to get SSH keys working between sourcetree and github
但不幸的是,在遵循@DeepSpace101 的建议后,我仍然收到
的消息
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
但我不知道为什么会收到此消息。
好的,我让它工作了。
问题是 Sourcetree 要求我提供 SSH 密钥的密码。不幸的是,这一点根本没有说清楚。 Sourcetrees 接口询问
Password Required
For user **** on host github.com
我以为它想要我的密码github。输入后我收到上面的消息,我的公钥权限被拒绝。
只有在我尝试用我的控制台克隆回购协议后,我才被要求
Enter passphrase for key '/Users/****/.ssh/id_rsa':
这让我很清楚问题出在哪里。
好吧,经过一场激烈的斗争,我得到了我想要的。
我使用 github 和我自己的帐户,我是一些组织的成员。我设置了一个 SSH 密钥以通过 sourctree 连接到 github。
到目前为止一切顺利,当我想添加远程存储库时,我只需浏览我的存储库列表即可。
不幸的是,我无法从组织存储库中进行选择,我什至将自己添加为协作者,尽管我拥有管理员权限,甚至自己创建了存储库。
我怎样才能让它工作,我也可以从我的组织回购协议中选择?
(我在另一个线程中发现了一个指向此的 link:https://gist.github.com/jexchan/2351996 但我认为这略有不同,不是吗?)
提前致谢。
干杯
编辑:我也认为这可能指向正确的方向: unable to get SSH keys working between sourcetree and github
但不幸的是,在遵循@DeepSpace101 的建议后,我仍然收到
的消息Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
但我不知道为什么会收到此消息。
好的,我让它工作了。 问题是 Sourcetree 要求我提供 SSH 密钥的密码。不幸的是,这一点根本没有说清楚。 Sourcetrees 接口询问
Password Required
For user **** on host github.com
我以为它想要我的密码github。输入后我收到上面的消息,我的公钥权限被拒绝。
只有在我尝试用我的控制台克隆回购协议后,我才被要求
Enter passphrase for key '/Users/****/.ssh/id_rsa':
这让我很清楚问题出在哪里。 好吧,经过一场激烈的斗争,我得到了我想要的。