From 05b6e98199af1a6a6ad82194cfa180adb25c3524 Mon Sep 17 00:00:00 2001 From: Alin Voinea Date: Thu, 16 Jun 2016 17:51:32 +0300 Subject: [PATCH] Fix SSH_AUTH_KEY --- docker-entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index c618619..971787d 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -9,10 +9,10 @@ mkdir -p /root/.ssh chmod go-rwx /root/.ssh/authorized_keys sed -i "s/#PasswordAuthentication yes/PasswordAuthentication no/g" /etc/ssh/sshd_config -# Provide SSH_AUTHORIZED_KEY_* via environment variable +# Provide SSH_AUTH_KEY_* via environment variable for item in `env`; do case "$item" in - SSH_AUTHORIZED_KEY*) + SSH_AUTH_KEY*) ENVVAR=`echo $item | cut -d \= -f 1` printenv $ENVVAR >> /root/.ssh/authorized_keys ;;