To create SSH version 2 keys, use the ssh-keygen program that comes
with OpenSSH:
[mlevan@Hamming SSH]$ ssh-keygen -t rsa -N '' -f ssh_host_rsa_key Generating public/private rsa key
pair. Your identification has been
saved in ssh_host_rsa_key. Your public key has been saved in
ssh_host_rsa_key.pub. The key fingerprint is: 65:8a:a9:41:4c:ca:64:6a:a3:39:49:8e:cc:94:8d:f3
mlevan@Hamming.math.transy.edu
[mlevan@Hamming SSH]$ ssh-keygen -t dsa -N '' -f ssh_host_dsa_key Generating public/private dsa key
pair. Your identification has been
saved in ssh_host_dsa_key. Your public key has been saved in
ssh_host_dsa_key.pub. The key fingerprint is: ef:7b:60:d7:f1:95:8c:9e:43:82:76:29:62:ec:18:65
mlevan@Hamming.math.transy.edu
To create SSH version 1 keys, use this command:
[mlevan@Hamming SSH]$
ssh-keygen -t rsa1 -N '' -f ssh_host_key
Generating public/private rsa1 key pair.
Your identification has been saved in ssh_host_key.
Your public key has been saved in ssh_host_key.pub.
The key fingerprint is:
e6:48:99:9b:7c:d8:8c:17:d0:9b:cb:a5:81:d9:48:29
mlevan@Hamming.math.transy.edu