Skip to content

Instantly share code, notes, and snippets.

@brian-pieces
Created March 24, 2023 16:35
Show Gist options
  • Save brian-pieces/ade8019a8748f5b347dc6904bcce0985 to your computer and use it in GitHub Desktop.
Save brian-pieces/ade8019a8748f5b347dc6904bcce0985 to your computer and use it in GitHub Desktop.
How to fix error from github changing their ssh host key

SSH Host Key Verification Failed Warning

Preview:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
39:e5:ef:60:f1:ae:08:b9:46:36:7c:7d:61:e8:c9:41.
Please contact your system administrator.
Add correct host key in /home/ataliba/.ssh/known_hosts to get rid of this message.
Offending RSA key in /home/ataliba/.ssh/known_hosts:17
RSA host key for host.host.com.br has changed and you have requested strict checking.
Host key verification failed.
Associated Context
Type Text Note ( .Text Note )
Associated Tags Host key failure Host key verification Strict checking RSA key fingerprint Man-in-the-middle attack SSH warning message Framework:None. This is a warning message related to SSH authentication. Known hosts file Security threat System administrator Remote host identification
💡 Smart Description The code displays a warning message indicating that the host key for a remote server has changed and suggests adding the correct host key to the known_hosts file to get rid of the message.
🔎 Suggested Searches SSH remote host identification changed warning
Man-in-the-middle attack warning during SSH connection
How to fix RSA host key verification failed error
SSH fingerprint for RSA key sent by remote host
How to add correct host key in known_hosts file for SSH connection
Related Links https://www.ssh.com/academy/ssh/host-key
https://www.ssh.com/academy/ssh/keygen
https://www.ssh.com/academy/ssh/putty/windows/puttygen
https://www.redhat.com/sysadmin/ssh-proxy-bastion-proxyjump
https://gist.github.com/ataliba/2396042
https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys-on-ubuntu-20-04
https://www.ssh.com/academy/ssh/agent
https://www.tecmint.com/ssh-passwordless-login-using-ssh-keygen-in-5-easy-steps/
Related People Brian Lambert
Sensitive Information No Sensitive Information Detected
Shareable Link https://brl.pieces.cloud/?p=2aca46b261
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment