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

6 lines
157 B
Plaintext
Raw Normal View History

2017-06-13 13:36:25 +00:00
#!/usr/bin/with-contenv sh
if [ ! -f /var/lib/proftp/keys/ssh_rsa_key ]; then
ssh-keygen -b 2048 -t rsa -f /var/lib/proftp/keys/ssh_rsa_key -q -N ""
fi