Google Cloud Platform VM 上的 GitLab

Google Cloud Platform VM 上的 GitLab

我正在尝试在 Google Cloud Platform 上运行 gitlab。我遵循了以下教程:https://docs.gitlab.com/ce/install/google_cloud_platform/index.html但是现在我无法将提交推送到远程。

[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

SSH 密钥已添加到 Google Cloud Platform VM 以及 Gitlab 帐户。我相信我必须以某种方式通过 ssh 启用 git,但不太确定这些内容与 Google Cloud Platform 的安全性如何配合。

答案1

所以问题出在其他地方。

我最近更改了虚拟机的 IP 地址(改为静态 IP)。不幸的是,我忘记在 GitLab 设置中更改 IP,因此克隆链接仍然指向旧 IP。因此Could not read from remote repository

相关内容