#ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_keydom
Generating public/private dsa key pair.ssh
Enter passphrase (empty for no passphrase):ide
Enter same passphrase again:io
Your identification has been saved in /etc/ssh/ssh_host_dsa_key.rsa
Your public key has been saved in /etc/ssh/ssh_host_dsa_key.pub.ssh-key
The key fingerprint is:localhost
xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx root@localhost.localdomain
#ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
Generating public/private rkey pair.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /etc/ssh/ssh_host_rsa_key.
Your public key has been saved in /etc/ssh/ssh_host_dsa_rey.pub.
重啓ssh,完成