From 4e4726aaa28fb4e5cf163be14ace94dcf0ac9769 Mon Sep 17 00:00:00 2001 From: "Alex D. Guerrieri" Date: Thu, 3 Oct 2019 12:14:12 +0200 Subject: [PATCH] Update entrypoint --- files/entrypoint | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/entrypoint b/files/entrypoint index 8730452..16d2270 100755 --- a/files/entrypoint +++ b/files/entrypoint @@ -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