Changes

Jump to: navigation, search

Debian template creation

3 bytes added, 09:04, 25 April 2007
m
Fix SSH host keys: fixed quotes for ssh-keygen
=== 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.
<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 ===
2
edits

Navigation menu