小编web*_*opf的帖子

无法从siteground克隆git存储库

我正在尝试设置MS WebMatrix以从我的siteground主机帐户使用Git存储库.我使用他们的cpanel插件创建了存储库,它告诉我可以使用此命令克隆它

git clone ssh://username@sm3.siteground.biz:18765/home/username/public_html/

我当然替换了用户名,我使用ssh-keygen创建了一个rsa密钥.在Webmatrix GUI中,它只是打开一个窗口,上面写着"克隆正在进行中",但它没有任何内容.当我在PowerShell中运行该命令时,这是输出:

    Cloning into 'public_html'...
    Permission denied (publickey).
    fatal: Could not read from remote repository.

    Please make sure you have the correct access rights
    and the repository exists.
Run Code Online (Sandbox Code Playgroud)

任何帮助都非常感谢!

编辑:我之前没有使用过github,但我很确定我没有连接到它.我认为存储库位于siteground的服务器上.无论如何,我无法在PowerShell中找到它,所以现在我使用putty加载适当的密钥并使用外部git工具(源树)连接,该工具不使用与PowerShell相同的ssh客户端.这就是现在为我工作的解决方案.我会把这个问题保持开放,因为也许有人来到这里可以帮助我们如何使用PowerShell进行设置.

windows git ssh powershell webmatrix

2
推荐指数
1
解决办法
1716
查看次数

标签 统计

git ×1

powershell ×1

ssh ×1

webmatrix ×1

windows ×1