We need to first generate the personal authentication
keys.
You can see if the keys exists by looking in ~./ssh for
either id_dsa and id_dsa.pub or id_rsa and id_rsa.pub.
If these do not exist, you can do the following to
create either the dsa or rsa keys:
[mlevan@localhost ~]$ ssh-keygen
-t rsa
Generating public/private rsa key
pair.
Enter file in which to save the
key (/home/mlevan/.ssh/id_rsa):
/home/mlevan/.ssh/id_rsa already
exists.
Overwrite (y/n)? y
Enter passphrase (empty for no
passphrase):
Enter same passphrase again:
Your identification has been
saved in /home/mlevan/.ssh/id_rsa.
Your public key has been saved in
/home/mlevan/.ssh/id_rsa.pub.
The key fingerprint is:
34:63:9d:fc:04:26:ee:65:b3:8d:2d:3a:c0:8e:20:41
mlevan@localhost.localdomain
This command creates two keys : id_rsa and id_rsa.pub.
If you want to generate DSA keys, replace rsa with dsa.
Be careful with the passphrase, as there is no way to
recover it.