[CentOS] server host keys for kvm clones

Wed Jan 4 22:02:44 UTC 2012
James B. Byrne <byrnejb at harte-lyne.ca>

On Wed, January 4, 2012 14:08, James B. Byrne wrote:

> Is there a simple script somewhere to regenerate all the
> server host keys for the new guest after cloning?

The init script /etc/rc.d/init.d/sshd handles it.

I discover that simply removing the existing ssh keys from
/etc/ssh and restarting the sshd service causes the host
keys to be regenerated.

Another step to add to post cloning housekeeping.

-- 
***          E-Mail is NOT a SECURE channel          ***
James B. Byrne                mailto:ByrneJB at Harte-Lyne.ca
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3