From 9c6eb313586bf8b3ae763fa0f1aea4599a87b8fb Mon Sep 17 00:00:00 2001 From: Magnus Tovslid Date: Tue, 15 Nov 2016 15:32:03 +0100 Subject: [PATCH] Add empty password to ssh keys --- entrypoint | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint b/entrypoint index 71387c8..861a328 100755 --- a/entrypoint +++ b/entrypoint @@ -130,10 +130,10 @@ 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 < /dev/null + ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N '' fi if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then - ssh-keygen -t rsa -b 4096 -f /etc/ssh/ssh_host_rsa_key < /dev/null + ssh-keygen -t rsa -b 4096 -f /etc/ssh/ssh_host_rsa_key -N '' fi fi