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

6 lines
151 B
Text
Raw Normal View History

2017-06-13 15:36:25 +02:00
#!/usr/bin/with-contenv sh
2017-09-06 10:46:01 +02:00
if [ ! -f /etc/proftpd/keys/ssh_rsa_key ]; then
ssh-keygen -b 2048 -t rsa -f /etc/proftpd/keys/ssh_rsa_key -q -N ""
2017-06-13 15:36:25 +02:00
fi