Wednesday, July 8, 2009

regenerate ssh keys

SH1 protocol 
sudo ssh-keygen -q -f /etc/ssh/ssh_host_key -N '' -t rsa1 

SSH2 protocol 
sudo ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N '' -t rsa
sudo ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa

Necessary after installing from remastersys iso.

No comments:

Post a Comment