Reputation: 1307
I am trying to clone an empty repository from the Google Cloud Resource Repositories. So far I have:
git clone ssh://[email protected]@source.developers.google.com:2022/p/some-project/r/some-repository
However, it fails with this response:
Cloning into 'some-repository'...
Enter passphrase for key '/c/Users/blah/.ssh/id_rsa':
fatal: could not fetch refs from ssh://[email protected]@source.developers.google.com:2022/p/some-project/r/some-repository
I am running Git Bash from Windows 10
It does label SSH Authentication as BETA on Cloud Resource Repositories, which makes me wonder if it might not be fully functional yet.
Has anyone managed to connect to Cloud Resource Repositories via SSH?
Any help or advice much appreciated. Thank you
Upvotes: 0
Views: 3257
Reputation: 18545
Type ssh-keygen
and press ENTER. A passphrase is optional.
Note: if the ssh-keygen
is not recognized you need to install OpenSSH.
Upvotes: 0
Reputation: 1323115
Try first to use an SSH key without passphrase, and make sure to create it with the legacy format:
ssh-keygen -m PEM -t rsa -P ""
(The -m PEM
is for producing the legacy format)
That will overwrite your previous key: register the new id_rsa.pub
content, and try again.
Upvotes: 3