When ssh-keygen -e is used to export a public key into an RFC4716 formatted file, it is possible for the Comment header line to be longer than the maximum line length required by RFC4716. For example, I have seen Comment header lines which exceed the 72-byte line length maximum (excluding line terminators). To handle such long Comment (or other header) values, ssh-keygen should split the header value over multiple lines using the '\' line continuation character specified in RFC4716.
Created attachment 1705 [details] ssh-keygen: wrap long comment lines Thanks for the report, we'll target this at 5.4.
Created attachment 1725 [details] truncate at 72 chars As per Markus' suggestion, just truncate at 72 chars
patch applied - this will be in OpenSSH 5.4
With the release of 5.4p1, this bug is now considered closed.