【发布时间】:2020-06-19 06:22:13
【问题描述】:
我正在使用已禁用外部 IP 地址并通过 Cloud NAT 访问互联网的 Google Compute Engine 实例。问题是,当我尝试使用 SSH 身份验证从 Google Cloud Source Repo 克隆 Repo 时,出现以下错误:-
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我使用this example 在 GCE 中设置 Cloud NAT。当我安装了一些软件包时,GCE 能够访问互联网。我正在使用 RSA 密钥进行身份验证,并按照here 提供的说明进行操作。
我该如何解决这个问题?我不想使用手动凭据或 Cloud SDK 来克隆 Repo。
【问题讨论】:
标签: google-cloud-platform google-compute-engine nat google-cloud-source-repos google-cloud-router