user-access/rootfs/etc/cont-init.d/03-ssh-keys

6 lines
151 B
Plaintext

#!/usr/bin/with-contenv sh
if [ ! -f /etc/proftpd/keys/ssh_rsa_key ]; then
ssh-keygen -b 2048 -t rsa -f /etc/proftpd/keys/ssh_rsa_key -q -N ""
fi