Attempted building a Debian 6 (Squeeze) template and could not SFTP into it as the old keys were not loading.
Solved it on the LXC console with:
The above non-interactive mode does not seem to work in the webapp_setup file in the LXC Template but the following works:
Solved it on the LXC console with:
Bash:
ssh-keygen -q -t rsa -f /etc/ssh/ssh_host_rsa_key -N "" <<< $'\ny' >/dev/null 2>&1
ssh-keygen -q -t dsa -f /etc/ssh/ssh_host_dsa_key -N "" <<< $'\ny' >/dev/null 2>&1
The above non-interactive mode does not seem to work in the webapp_setup file in the LXC Template but the following works:
Bash:
rm -f /etc/ssh/ssh_host_rsa_key
ssh-keygen -q -t rsa -f /etc/ssh/ssh_host_rsa_key -N ""
rm /etc/ssh/ssh_host_dsa_key
ssh-keygen -q -t dsa -f /etc/ssh/ssh_host_dsa_key -N ""
Last edited: