1 2 3 4 5 6 7 8 9 10 11 12 13 14
regen_host_keys () { sudo /bin/rm -v /etc/ssh/ssh_host_* sudo dpkg-reconfigure openssh-server sudo /etc/init.d/ssh restart } echo "Do you really want to remove the existing SSH host keys? " ${vyatta_bindir}/yesno if [ $? -eq 0 ] then regen_host_keys fi