Reputation: 564
Similar questions look outdated compared to official guide. I do the following in Colab
:
# Generating a new SSH key
!ssh-keygen -t ed25519 -C "[email protected]"
Your identification has been saved in /root/.ssh/id_ed25519.
Your public key has been saved in /root/.ssh/id_ed25519.pub.
Then I copy-paste the content of id_ed25519.pub
ssh-ed25519 ..... [email protected]
to new SSH Key window.
And test connection fails:
!ssh -T [email protected]
Host key verification failed.
What am I doing wrong?
Upvotes: 1
Views: 983
Reputation: 76764
The error message you're seeing, “Host key verification failed,” indicates that the remote server is unknown. Normally, in such a case, OpenSSH will prompt you with the fingerprint of the remote server and ask you to verify it. The official guide contains a link to the GitHub SSH key fingerprints.
However, in this case, you're running the command from another program without a TTY, so OpenSSH can't prompt you. You'll need to attempt to invoke the command from a terminal, then verify the fingerprint and then things should work.
Upvotes: 1