"Scott" == Scott <linux...@earthlink.net> writes:
Scott> I'm able to generate DSA keys just fine, but I'm wondering what
Scott> good is it? (1) Is entering a passphrase somehow more secure
Scott> than just using your password?
Even though it looks very similar from a user perspective (entering a
"passphrase" instead of a "password"), public-key authentication operates
quite differently. Principal advantages are:
- Keys are strongly random, as opposed to human-memorized passwords which
are vulnerable to guessing attacks.
- The public-key method does not disclose your key to the server, or allow
the server to use or guess at your key. The password method transmits
your password to the server, so that a compromised server or
man-in-the-middle attack could steal it.
- OpenSSH provides many user-controllable login restrictions if the
authentication method is public-key, via options in the authorized_keys
file. This is not a design advantage of the method, but merely an
(unfortunate) artifact of the software -- but it is a consideration.
Scott> (2) Is using an empty passphrase a bad idea?
Yes, since it is equivalent to storing your password in a file on disk
named PLEASE-STEAL-MY-PASSWORD.TXT.
Scott> (3) If I set up keys on multiple clients, do I just append each
Scott> one's ~/.ssh/id_dsa.pub to the end of the
Scott> ~/.ssh/authorized_keys2 file on the server?
Yes, although you don't need a different key for each host; one ("your
key") will do.
Scott> What, with just a space between each one?
As is documented in the SSH man page, the format is one key per line.
Scott> (4) If I want root access back on the server, is it better to
Scott> ssh as root, or ssh as some user and then su to root?
The latter is generally preferable, since gives better accountability and
is administratively simpler (one place to look/configure for root
access).
Scott> (5) The Red Hat docs I referenced say that Red Hat uses DSA by
Scott> default. Is there any reason to use RSA?
RSA tends to be a bit faster. Also, some people have a principled
objection to the security of the DSA method. Simon Tatham used to have an
explanation of this on:
http://www.chiark.greenend.org.uk/~sgtatham/putty/changes.html
but it seems to have disappeared.
--
Richard Silverman
sl...@shore.net