Chris G.
Chris G.

Reputation: 25934

ssh key for repositories - can't be established. ECDSA key fingerprint

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

Answers (2)

culix
culix

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.

  1. Scroll down to "Clone using SSH"
  2. Click on "GCloud"
  3. See the fingerprint should read:

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

Peet Brits
Peet Brits

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

Related Questions