Public bug reported: When connecting to a host whose host keys have changed (e.g. when connecting to a new instance in a cloud), something like the below message is displayed. The ssh-keygen invocation is harder to copy-paste than it could be if it were on a separate line.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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 <REDACTED>. Please contact your system administrator. Add correct host key in /home/<user>/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /home/<user>/.ssh/known_hosts:408 remove with: ssh-keygen -f "/home/<user>/.ssh/known_hosts" -R <REDACTED> ECDSA host key for <REDACTED> has changed and you have requested strict checking. Host key verification failed. ** Affects: openssh (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to openssh in Ubuntu. https://bugs.launchpad.net/bugs/1491532 Title: ssh-keygen invocation difficult to copy-paste Status in openssh package in Ubuntu: New Bug description: When connecting to a host whose host keys have changed (e.g. when connecting to a new instance in a cloud), something like the below message is displayed. The ssh-keygen invocation is harder to copy- paste than it could be if it were on a separate line. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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 <REDACTED>. Please contact your system administrator. Add correct host key in /home/<user>/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /home/<user>/.ssh/known_hosts:408 remove with: ssh-keygen -f "/home/<user>/.ssh/known_hosts" -R <REDACTED> ECDSA host key for <REDACTED> has changed and you have requested strict checking. Host key verification failed. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1491532/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp