answersLogoWhite

0

ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key

ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key

for the DSA and RSA host keys, respectively (it will also create a corresponding .pub file). You can of course specify another filename and then move/copy them in place.

User Avatar

Wiki User

12y ago

What else can I help you with?