cPanel 中的 GIT 存储库连接失败

Ume*_*yar 15 git cpanel

我在将 git repo 连接到 cpanel 时遇到问题。我已经正确地从 git 向 cPanel 添加了 SSH 密钥。有时 repo 正在连接,有时我遇到以下问题错误:“/usr/local/cpanel/3rdparty/bin/git”在结束时报告错误代码“128”:致命:无法读取“ https:// ”的密码。 .....@bitbucket.org ': 没有这样的设备或地址

在此处输入图片说明

先感谢您

Von*_*onC 16

我已将 SSH 密钥添加到 cPanel

那么您应该使用 SSH URL ( git@server:user/repo),而不是 HTTPS URL(以https://..开头)

请参阅CPanel 知识库中的“ Git 指南 - 设置对私有存储库的访问”。

git clone git@example.com:MyStuff/private-repository.git
Run Code Online (Sandbox Code Playgroud)

可以在此处看到典型的 BitBucket SSH URL:

git@bitbucket.org:<account_name>/<repo_name>.git
# or
ssh://git@bitbucket.org/<account_name>/<repo_name>.git
Run Code Online (Sandbox Code Playgroud)

注意:BitBucket 存储库的用户名始终是 git