D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] ssh keys



On Sunday 19 May 2002 22:45, Mark Stephens wrote:
ssh-keygen -t dsa   

My understanding is that RSA keys are now the preferred method. It was, 
initially, RSA keys, then DSA, and now we're back on RSA keys (under SSH 
protocol 2).

    It will then say "Generating public/private dsa key pair". Next it 
will ask you where to save the private key. We want the default so just 
press <enter>. It will now ask for a password. Don't set one. Aparently 
if you do it can't be used for our purpose. Perhaps someone knows for sure?

If you want keys that will not require a passphrase then don't enter one. 
Personally I just use the "-P '' " option on the keygen command.

    After you've pressed <enter> twice it will give you some information 
about the keys it has generated. We now have to get the public key onto 
the server and put it in the right place. The easiest way is with scp :

Well, not initially, you haven't got ssh (or scp) working yet :-) Personally 
I telnet into the box and cut and paste from an X session. Failing that I've 
simply used a floppy in the past.

cat id_dsa.pub >>  .ssh/authorized_keys2

Again, the use of 'authorized_keys2' has been surpassed by the use of 
'authorized_keys' once more.


John.

--
John Horne, University of Plymouth, UK            Tel: +44 (0)1752 233914
E-mail: jhorne@xxxxxxxxxxxxxx
PGP key available from public key servers

--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.


Lynx friendly