This is Ubuntu/Debian centric so it may not work for others:

sudo rm /etc/ssh/ssh_host_{dsa,rsa}_key*

sudo dpkg-reconfigure -plow openssh-server

Or the old fashion way:

 
 ssh-keygen -b 4096 -t rsa -f ssh_host_rsa_key
indexes/generate_new_server_keys.txt · Last modified: 2011/07/22 21:45 by domingo
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki