ssh-keygen invocation difficult to copy-paste

Bug #1491532 reported by Dan Watkins on 2015-09-02
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openssh (Ubuntu)
Low
Colin Watson

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.

Robie Basak (racb) on 2015-09-04
Changed in openssh (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Colin Watson (cjwatson) on 2015-09-08
Changed in openssh (Ubuntu):
assignee: nobody → Colin Watson (cjwatson)
status: Triaged → In Progress
status: In Progress → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openssh - 1:6.9p1-2

---------------
openssh (1:6.9p1-2) unstable; urgency=medium

  [ Colin Watson ]
  * mention-ssh-keygen-on-keychange.patch: Move example ssh-keygen
    invocation onto a separate line to make it easier to copy and paste
    (LP: #1491532).

  [ Tyler Hicks ]
  * Build with audit support on Linux (closes: #797727, LP: #1478087).

 -- Colin Watson <email address hidden> Thu, 10 Sep 2015 12:26:11 +0100

Changed in openssh (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers