## 17 remote host identification has changed: answer is ssh-keygen -R # server 2222 restarted with a new host key $ ssh -p 2222 root@127.0.0.1 @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ Offending ED25519 key in /tmp/tfs/ssh/home/.ssh/known_hosts:1 Host key verification failed. # answer, with the port syntax from its PS2 $ ssh-keygen -R '[127.0.0.1]:2222' # Host [127.0.0.1]:2222 found: line 1 /tmp/tfs/ssh/home/.ssh/known_hosts updated. $ ssh -o StrictHostKeyChecking=accept-new -p 2222 root@127.0.0.1 Warning: Permanently added '[127.0.0.1]:2222' (ED25519) to the list of known hosts. login-ok # the answer doesn't say to check the new fingerprint against the server before trusting it