From 32429ada6154cc6bc4693de9e1f304f1ae05eef6 Mon Sep 17 00:00:00 2001 From: broizter Date: Mon, 4 Mar 2024 15:22:22 +0100 Subject: [PATCH] fixed multiline public ssh keys --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2e393e7..c5218a6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,4 +16,4 @@ COPY --from=docker:dind /usr/local/bin/docker /usr/local/bin/ EXPOSE 22 -CMD ["/bin/bash", "-c", "echo $SSH_PUBLIC_KEY > /root/.ssh/authorized_keys; /usr/sbin/sshd -D"] +CMD ["/bin/bash", "-c", "echo "$SSH_PUBLIC_KEY" > /root/.ssh/authorized_keys; /usr/sbin/sshd -D"]