Blanks in filenames generated by ssh-keygen (Was RE: GSSAPI)

Scott Neugroschl scott_n at
Tue Aug 26 10:05:07 EST 2014

Scott Neugroschl wrote:
>Thanks, Damien.   I was trying to debug an issue in this code.  Turns out there was a trailing blank in
> my host key file name.  I'll look at ssh-keygen.c and see if I can rectify that.

Is there a particular reason to allow leading/trailing blanks in the key file name?   If there is
no such reason, then buf should be trimmed in ask_filename(), around line 250 (OpenSSH 6.6p1).


More information about the openssh-unix-dev mailing list