Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed host id reported as "read: Connection reset by peer" #317

Open
divinity76 opened this issue Dec 14, 2024 · 0 comments
Open

changed host id reported as "read: Connection reset by peer" #317

divinity76 opened this issue Dec 14, 2024 · 0 comments

Comments

@divinity76
Copy link

the "REMOTE HOST IDENTIFICATION HAS CHANGED" error is erroneously reported as "read: Connection reset by peer".

see the difference between omitting -v and adding -v here:

$ sshfs -o allow_other -o reconnect -o follow_symlinks root@domain:/ /remote/domain
read: Connection reset by peer
$ sshfs -o allow_other -o reconnect -o follow_symlinks root@domain:/ /remote/domain -v
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 ED25519 key sent by the remote host is
SHA256:me1b+B2WwBnpvPTMW2gwOduBZl+kuf8EWFzhtb1r4B4.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:49
  remove with:
  ssh-keygen -f '/root/.ssh/known_hosts' -R 'domain'
Host key for domain has changed and you have requested strict checking.
Host key verification failed.
read: Connection reset by peer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant