Google 雲端平台虛擬機器上的 GitLab

Google 雲端平台虛擬機器上的 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,因此克隆連結仍然指向舊的。因此Could not read from remote repository

相關內容