We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
it would be a thing to regenerate ssh keys for security reasons at first boot of a freshly deployed appliance
The text was updated successfully, but these errors were encountered:
rm /etc/ssh/ssh_host_* dpkg-reconfigure openssh-server systemctl restart ssh
Sorry, something went wrong.
Could easily create an init script, and disable it once the first boot has concluded.
Create file /etc/init.d/99-sexigraf-firstboot.sh:
#!/bin/bash /bin/rm /etc/ssh/ssh_host_* /usr/sbin/dpkg-reconfigure /bin/systemctl restart ssh /usr/sbin/update-rc.d 99-sexigraf-firstboot.sh disable
Make sure the ownership is correct: chmod 755 /etc/init.d/99-sexigraf-firstboot.sh
chmod 755 /etc/init.d/99-sexigraf-firstboot.sh
Enable the script prior to packaging OVF: update-rc.d 99-sexigraf-firstboot.sh defaults
update-rc.d 99-sexigraf-firstboot.sh defaults
No branches or pull requests
it would be a thing to regenerate ssh keys for security reasons at first boot of a freshly deployed appliance
The text was updated successfully, but these errors were encountered: