[Bug 1157] ssh-keygen doesn't handle DOS line breaks

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Wed Feb 15 08:16:32 EST 2006


http://bugzilla.mindrot.org/show_bug.cgi?id=1157

           Summary: ssh-keygen doesn't handle DOS line breaks
           Product: Portable OpenSSH
           Version: 3.8.1p1
          Platform: All
               URL: http://openssh.org/txt/draft-ietf-secsh-publickeyfile-
                    02.txt
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ssh-keygen
        AssignedTo: bitbucket at mindrot.org
        ReportedBy: pepper at rockefeller.edu


ssh-keygen cannot import files with DOS-style line endings (CR/LF). This
appears to be a violation of draft-ietf-secsh-publickeyfile-02, which says all
line-break styles MUST be supported.

I initially noticed this with a key created on VMS, using DOS-style line
breaks, and confirmed with a brand-new key created with ssh-3.2.9.1. ssh-keygen
was able to import the key with default UNIX-style line endings, but I got
"uudecode failed." with DOS-style line breaks.


pepper at salt:~/.ssh2$ ssh-keygen -i -f id_dsa_2048_a.pub.dos 
uudecode failed.


3.1 Line termination Characters

   In order to achieve the goal of being able to exchange public key
   files between servers, implementations are REQUIRED to read files
   using any of the common line termination sequence, <CR>, <LF> or
   <CR><LF>.

   Implementations may generate files using which ever line termination
   convention is most convenient


My system is:

pepper at salt:~/.ssh$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.4.4
BuildVersion:   8G32
pepper at salt:~/.ssh$ uname -a
Darwin salt.rockefeller.edu 8.4.0 Darwin Kernel Version 8.4.0: Tue Jan  3
18:22:10 PST 2006; root:xnu-792.6.56.obj~1/RELEASE_PPC Power Macintosh powerpc




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the openssh-bugs mailing list