Search code examples
gitgoogle-source-repositories

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)

Solution

  • 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.