【问题标题】:Using SSH Keys to get access to organizations repository in Sourcetree使用 SSH 密钥访问 Sourcetree 中的组织存储库
【发布时间】:2017-03-01 20:25:55
【问题描述】:

我正在使用自己的帐户使用 github,并且我是一些组织的成员。我设置了一个 SSH 密钥,通过源树连接到 github。

到目前为止一切顺利,当我想添加远程存储库时,我只需浏览我的存储库列表。

不幸的是,我无法从组织存储库中进行选择,我什至将自己添加为协作者,尽管我拥有管理员权限,甚至自己创建了存储库。

我怎样才能让它工作,我也可以从我的组织回购中选择?

(我在另一个线程中找到了指向此的链接: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.

但我不知道为什么会收到此消息。

【问题讨论】:

    标签: git github ssh atlassian-sourcetree


    【解决方案1】:

    好的,我让它工作了。 问题是 Sourcetree 要求我输入 SSH 密钥的密码。不幸的是,这根本没有说清楚。 Sourcetrees 接口询问

    Password Required
    For user **** on host github.com
    

    我假设它想要我的 github 密码。输入之后,我得到了上面的消息,我的公钥的权限被拒绝了。

    只有在我尝试使用控制台克隆 repo 后,我才被要求提供

    Enter passphrase for key '/Users/****/.ssh/id_rsa': 
    

    这让我明白了问题所在。 好吧,经过一番激烈的斗争,我得到了我想要的。 ??

    【讨论】:

      猜你喜欢
      • 2014-02-19
      • 2021-06-25
      • 2019-04-23
      • 2021-10-24
      • 2020-09-13
      • 1970-01-01
      • 1970-01-01
      • 2021-09-07
      • 2017-09-15
      相关资源
      最近更新 更多