FirstServed Tech Blog - FirstServed and the Art of Server Tuning

Archive for April, 2009

Regenerating SSH keys

Wednesday, April 15th, 2009

We thought it would be good to share this simple command to regenerate SSH keys:

rm -fr /etc/ssh/*key*
service sshd restart

Please be careful when executing this command, it will remove files without confirmation!

In normal situations you would never need this…
However it can be usefull when cloning machines.