Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Debian template creation

126 bytes added, 11:20, 10 May 2007
restore <pre>, explained why Fix SSH host keys
=== Fix SSH host keys ===
This is only useful if you installed SSH. Each individual [[VE]] should have its own pair of SSH host keys. The code below will wipe out the existing SSH keys and instruct the newly-created [[VE]] to create new SSH keys on first boot.
<!-- please do not remove <pre>...</pre> pair of tags below, otherwise quotes after -N (-N '') are not visible --><pre>rm -f /etc/ssh/ssh_host_* cat << EOF > /etc/rc2.d/S15ssh_gen_host_keys #!/bin/bash ssh-keygen -f /etc/ssh/ssh_host_rsa_key -t rsa -N '' ssh-keygen -f /etc/ssh/ssh_host_dsa_key -t dsa -N '' rm -f \$0 EOF chmod a+x /etc/rc2.d/S15ssh_gen_host_keys</pre>
=== Clean packages ===