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