0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2024-11-17 12:51:33 -05:00

Update entrypoint

This commit is contained in:
Alex D. Guerrieri 2019-10-03 12:14:12 +02:00 committed by Adrian Dvergsdal
parent d38ae60a60
commit 4e4726aaa2
No known key found for this signature in database
GPG key ID: C1E9E2D9552A42D2

View file

@ -67,9 +67,13 @@ if [ ! -f "$userConfFinalPath" ]; then
# Generate unique ssh keys for this container, if needed
if [ ! -f /etc/ssh/ssh_host_ed25519_key ]; then
ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N ''
else
chmod 700 /etc/ssh/ssh_host_ed25519_key
fi
if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
ssh-keygen -t rsa -b 4096 -f /etc/ssh/ssh_host_rsa_key -N ''
else
chmod 700 /etc/ssh/ssh_host_rsa_key
fi
fi