Skip to content

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

@divinity76

Description

@divinity76

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions