From b356e20f263ff288a80f78217219788d642e6f18 Mon Sep 17 00:00:00 2001 From: broizter Date: Mon, 4 Mar 2024 15:14:21 +0100 Subject: [PATCH] allow setting multiple public ssh keys --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2e393e7..1dc41bb 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"]