Berkeley CSUA MOTD:Entry 25563
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/25 [General] UID:1000 Activity:popular
5/25    

2002/8/15 [Computer/SW/Security] UID:25563 Activity:very high
8/15    I am familar with SSH1 but just put SSH2 on my computer.
        With SSH1, I know I put the contents of his identity.pub file in my
        authorized_keys file.  With SSH2, what is the analogous procedure?
        Do I do something with the snippet that begins
        "---- BEGIN SSH2 PUBLIC KEY ----" which he sent me?  Where do I
        put that on my server?  Thanks!
        \_ It depends on what kind of keys you use (SSH1 or SSH2 keys),
           what client do you use, and whether the server is running
           openssh or commercial sshd. In case of soda, you have to upload
           your public key to your account, convert it to the format the openssh
           understands using ssh-keygen command and then append it to your
           .ssh/authorized_keys2 file.
           \_ I think I need to add something in the .ssh2 directory.
              I am running with "SSH-1.99-2.4.0 SSH Secure Shell".
              \_ yes, consult the ssh2 man page
              \_ place the public key (the entire file from '---- BEGIN...'
                 to '---- END SSH2 PUBLIC KEY ----' in a file under .ssh2
                 then create a .ssh2/authorization file containing the
                 line 'Key pubkeyfilename' (where pubkeyfilename is the
                 name of the public key file you just created) - max