dsa vers rsa ssh key

nega at exmachinae.net nega at exmachinae.net
Sun Apr 3 21:24:57 PDT 2005


Terry Tree writes:
 > On Apr 3, 2005 6:42 PM, Matthew Dillon <dillon at xxxxxxxxxxxxxxxxxxxx> wrote:
 > > 
 > > :
 > > :I'm looking at trying to use keys for my ssh logins instead of
 > > :passwords but I'm unaware of which key type is the best.  What type do
 > > :you guys typically use ?
 > > 
 > >     Both work fairly well but DSA keys are considered to be more
 > >     contemporary.   ssh-keygen -t dsa.
 > > 
 > 
 > Thanks.  Is it also possible to have more than one set of keys per
 > user ?  I'm wanting to have a set of keys for my personal machines and
 > a set of keys for my work machines.  When I try to place two keys
 > inside the id_dsa file I can no longer login to any of the machines
 > which I've setup the authorized_keys file on.


See this thread
http://leaf.dragonflybsd.org/mailarchive/users/2005-01/msg00098.html
for DSA vs. RSA differences. 

A user can have multiple keys of any type. But, you can have only one
key per key-file. Use the '-f' option of ssh-keygen to direct the
output to a filename of your choice. I would also recomend that you
use different passphrases for each key, if you're using multiple keys.








More information about the Users mailing list