Berkeley CSUA MOTD:Entry 25372
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/07/08 [General] UID:1000 Activity:popular
7/8     

2002/7/16-18 [Computer/SW/Security] UID:25372 Activity:high
7/16    How do I generate a public key compatible for openssh on an SSH
        (commercial) machine?  openssh uses single-line keys, while
        ssh uses multiline keys.
        \_ I got out a text editor and re-arranged the entries to match.  It
           was lame but it worked.
        \_ see openssh ssh-keygen man page
           \_ If you're trying to use pre-existing keys and convert them this
              won't do it for you but it will generate new ones in either
              format.
              \_ Yes it will, you apparently haven't read the manpage.
                 \_ Not in my version which is relatively recent.
     -x      This option will read a private OpenSSH DSA format file and print
             a SSH2-compatible public key to stdout.

     -X      This option will read a unencrypted SSH2-compatible private (or
             public) key file and print an OpenSSH compatible private (or pub-
             lic) key to stdout.
                \_ Yes and where's the option for ssh1?