Paul on Mon, 24 Sep 2001 19:40:13 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] SSH question


I wrote this summary after I got ssh working a while back.

By default, ssh-keygen creates a RSA key pair. The problem is that ssh
looks for a DSA key pair. Running "ssh -v servername" showed this error:
"debug: key does not exist: /home/username/.ssh/id_dsa" One way to fix
this is to tell ssh-keygen to make a DSA key pair. Here's how:

1) ssh-keygen -d    (Generates a DSA key pair.)

    $HOME/.ssh/id_dsa    (Press ENTER to accept. This was the missing
file.)

2) Enter a passphrase. Confirm passphrase.

3) Copy the "id-dsa.pub" file into the "$HOME/.ssh" directory on the
remote system.

4) cat id_dsa.pub >> authorized_keys2 (You can cat multiple keys into
the authorized_keys2 file.)

Now you should be prompted for a passphrase when you ssh to the remote
system.




______________________________________________________________________
Philadelphia Linux Users Group       -      http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug