Tool
SSH known_hosts fix command generator
Paste a “Host key verification failed” or “REMOTE HOST IDENTIFICATION HAS CHANGED” error and get commands that remove only that host’s old entry, after you verify the fingerprint. Handles [host]:port entries too.
Connection refused never reaches host key checking. The read-only order for ssh: connect to host … port 22: Connection refused, whether you are leaving a Mac or logging into one, is ssh: connect to host port 22: Connection refused, from a Mac or into a Mac. The tunnel incident this tool sits next to is in Chinese: 一次ssh排错经历.