Reputation: 25934
Update: This is beta stuff, so I will wait and see!
I am unable to git push using ssh to source.developers.google.com
I get this error message git push --all google
:
The authenticity of host '[source.developers.google.com]:<some ip address' can't be established.
ECDSA key fingerprint is SHA256:<key>
Update: added to KNOWN_HOSTS:
ssh-keyscan -t rsa source.developers.google.com > known_hosts
Following this documentation
ssh config vi ~/.ssh/config
:
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa
git remote -v:
google ssh://<email>[email protected]:2022/p/<repo url> (fetch)
google ssh://<email>[email protected]:2022/p/<repo url> (push)
Upvotes: 4
Views: 12278
Reputation: 10616
If you check out the Google Cloud documentation for Cloning a Repository, they publish their fingerprints there so you can confirm they are correct.
SHA256:AGvEpqYNMqsRNIviwyk4J4HM0lEylomDBKOWZsBn434
(or possibly in the future, some updated value)
If this matches the output from your console, you should be safe to type yes
and add the server to the list of known hosts.
Upvotes: 1
Reputation: 3247
If you say "yes" to the "Are you sure..?" prompt then it will add the address to your computer's list of known hosts, and it will not show the message again.
Upvotes: 3