The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



Thread: SSH keys
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 01-05-2007
Radar's Avatar
Radar Radar is offline
Registered User
  
 

Join Date: Dec 2006
Location: Clifton Park, NY
Posts: 86
Quote:
Originally Posted by new2ss
Hi everyone,

i wanted to generate ssh keys so that i can include the public key in the remote sever, so that for subsequent logins, i can do away with the keying in of the password. I consulted the man ssh-keygen man pages.
Code:
 "..Normally each user wishing to use SSH with RSA or DSA authentication runs
     this once to create the authentication key in $HOME/.ssh/identity,
     $HOME/.ssh/id_dsa or $HOME/.ssh/id_rsa..."
"..-t type
             Specifies the type of the key to create.  The possible values are
             ``rsa1'' for protocol version 1 and ``rsa'' or ``dsa'' for proto-
             col version 2."
I have the following questions.
1.How are the identity, id_dsa and id_rsa files generated? Does it mean that if i run ssh-keygen -t rsa1 , the id_rsa file is generated? If yes, then what is the value to specify if i want to generate the identity file?

Am i correct to assume the following:
if i supply rsa1 as the value for option -t, identity and identity.pub are generated?
if i supply rsa as the value for option -t, id_rsa and id_rsa.pub are generated?
if i supply dsa as the value for option -t, id_dsa and id_dsa.pub are generated?

Just do either ssh-keygen -t dsa or ssh-keygen -t rsa to generate the id file and the id pub file. Don't bother with rsa1 since you'll want to disable protocol 1 in sshd_config on the server anyway, since its not secure to use that.