尝试使用 SSH 身份验证从 Google Cloud Source Repositories 克隆 repo

Trying to clone repo from Google Cloud Source Repositories using SSH authentication

我正在尝试从 Google 云资源存储库 克隆一个空存储库。到目前为止我有:

但是,它失败并显示以下响应:

Cloning into 'some-repository'...
Enter passphrase for key '/c/Users/blah/.ssh/id_rsa':
fatal: could not fetch refs from ssh://blah@gmail.com@source.developers.google.com:2022/p/some-project/r/some-repository

我是运行宁GitBash来自Windows10

它在 Cloud Resource Repositories 上将 SSH Authentication 标记为 BETA,这让我想知道它是否还没有完全发挥作用。
有没有人设法通过 SSH 连接到 Cloud Resource Repositories

非常感谢任何帮助或建议。谢谢

首先尝试使用不带密码的 SSH 密钥,并确保创建它 with the legacy format:

ssh-keygen -m PEM -t rsa -P ""

-m PEM 用于生成遗留格式)

这将覆盖您之前的密钥:注册新的 id_rsa.pub 内容,然后重试。