【问题标题】:Can't clone RhoHub repository - access denied无法克隆 RhoHub 存储库 - 访问被拒绝
【发布时间】:2012-08-07 07:26:24
【问题描述】:

我已将我的 ssh 密钥添加到 RhoHub,但我仍然收到拒绝访问错误。有什么想法吗?

$ git clone git@git.rhohub.com:remcat/First App.git
Initialized empty Git repository in /home/Ramy/App.git/.git/
Access denied...
fatal: The remote end hung up unexpectedly

$ git clone 'git@git.rhohub.com:remcat/First App.git'
Initialized empty Git repository in /home/Ramy/First App/.git/
usage: git upload-pack [--strict] [--timeout=nn] <dir>
Error executing 'git-upload-pack'...
fatal: The remote end hung up unexpectedly

【问题讨论】:

    标签: git rhomobile


    【解决方案1】:

    如果您的远程 repo url 包含空格,您可能需要在其周围添加引号:

    git clone "git@git.rhohub.com:remcat/First App.git"
    

    否则,它会在本地目录“App.git”中寻找一个名为“App”的仓库,我怀疑这不是你想要的。

    如果错误仍然存​​在,那么您需要检查 ssh 问题,例如“Heroku push master ssh problem”中所述。

    然后至少以ssh -vvvT git@git.rhohub.com 开头。

    但是,首先,请确保您的网址中的空格不是这里的实际问题。

    【讨论】:

    • 好的,我试过单引号(你可以在原始问题中看到它)。今晚我会用双引号试一试,让你知道。谢谢。
    • 好吧,我认为您对空间的看法是正确的,但我最终只是创建了一个名为“MyApp”的新应用程序。无法让原件工作。
    猜你喜欢
    • 1970-01-01
    • 2016-05-18
    • 2020-04-28
    • 1970-01-01
    • 1970-01-01
    • 2020-03-18
    • 1970-01-01
    • 2021-09-30
    • 1970-01-01
    相关资源
    最近更新 更多