在 cPanel 上克隆 Azure 存储库

Clone Azure Repository on cPanel

我正在尝试在 cPanel 帐户上克隆 Azure 托管存储库。我已经从 cPanel -> 管理 SSH 密钥部分生成了 public 和 SSH 私钥。

后来我在我的 Azure 帐户中添加了 public 密钥 link。当我使用 SSH URL(例如:git@ssh.dev.azure.com/MyProject)在 cPanel 上克隆存储库时,它会抛出以下异常

Error: (XID azuvpp) “/usr/local/cpanel/3rdparty/bin/git” reported error code “128” when it ended:
Permission denied, please try again. Permission denied (password,publickey).
fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

注意 - 这里的想法是尝试实施 CI/CD 以在 Azure 存储库中的 master 分支上有提交时自动在 cPanel 上进行推送部署。

乐于接受想法和建议

尝试并测试从 cPanel 终端(cPanel >> 主页 >> 高级 >> 终端)的 SSH 访问

ssh -Tv git@ssh.dev.azure.com

特别检查输出中是否提到了您的 public/private ssh 密钥文件名(如果您的密钥不是标准默认值 ~/.ssh/id_rsa,您将需要一个 ~/.ssh/config 文件以便指定私钥文件路径)