Diggington 20 Posted April 4, 2023 Hey, I need to fix one of my scripts on the SDN, but when I go to push a new version I receive the following error: git push origin master @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: POSSIBLE DNS SPOOFING DETECTED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ The ECDSA host key for ssh.dreambot.org has changed, and the key for the corresponding IP address 143.198.12.24 is unknown. This could either mean that DNS SPOOFING is happening or the IP address for the host and its host key have changed at the same time. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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 ECDSA key sent by the remote host is SHA256:Sao9YbnD0FxBe2fGha2xDSYYVyhJvh6Y2HuVmWyrmqI. Please contact your system administrator. Add correct host key in /home/XXX/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /home/XXX/.ssh/known_hosts:3 remove with: ssh-keygen -f "/home/XXX/.ssh/known_hosts" -R "ssh.dreambot.org" ECDSA host key for ssh.dreambot.org has changed and you have requested strict checking. Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. I'm not super familiar with git so any help would be appreciated. I tried some solutions from StackOverflow but couldn't get it working. Thanks
hashbang 8 Posted April 4, 2023 Looks like Dreambot have rotated their SSH host key and you'll need to remove the key from your known_hosts file. You can remove the third entry (non-commented line) from /home/XXX/.ssh/known_hosts as shown by the line in the above output: Offending ECDSA key in /home/XXX/.ssh/known_hosts:3 (Note: - The :3 identified the third line) Or alternative, as the message suggests you can run the command to remove that key automatically remove with: ssh-keygen -f "/home/XXX/.ssh/known_hosts" -R "ssh.dreambot.org"
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now