OpenVZ Forum


Home » General » Support » "S15ssh_gen_host_keys" script not executed after creating new container (ssh)
"S15ssh_gen_host_keys" script not executed after creating new container [message #45663] Wed, 28 March 2012 09:20 Go to previous message
mgielissen is currently offline  mgielissen
Messages: 5
Registered: January 2012
Junior Member
I've created a custom debian 6 template.

I've followed these instructions:

cat << EOF > /etc/rc2.d/S15ssh_gen_host_keys
#!/bin/sh
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


But after creating a container, the ssh keys aren't generated. The official debian 6 template has a ssh_key_hack.sh?
 
Read Message
Read Message
Previous Topic: OpenVZ (RHEL6 2.6.32) and Java - kown issues?
Next Topic: abnormal memory centos EL6 64
Goto Forum:
  


Current Time: Fri Aug 01 18:43:33 GMT 2025

Total time taken to generate the page: 0.42662 seconds