From 55b1452993877fa05ef382924abe49328600fd24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20de=20la=20Pe=C3=B1a?= Date: Tue, 23 Apr 2024 10:38:38 +0200 Subject: [PATCH] fix: proper syntax --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4ec1af4..a94a594 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM alpine:3.19.1 -RUN apk add --no-cache openssh && ssh-keygen -A && echo 'root:root' | chpasswd +RUN apk add --no-cache openssh && ssh-keygen -A -ENTRYPOINT ["/usr/sbin/sshd"] -CMD ["-D", "-o", "PermitRootLogin=yes", "-o", "AddressFamily=inet", "-o", "GatewayPorts=yes", "-o", "AllowAgentForwarding=yes", "-o", "AllowTcpForwarding=yes", "-o", "KexAlgorithms=+diffie-hellman-group1-sha1", "-o", "HostkeyAlgorithms=+ssh-rsa"] +ENTRYPOINT ["sh", "-c"] +CMD ["echo 'root:root' | chpasswd && /usr/sbin/sshd -D -o PermitRootLogin=yes -o AddressFamily=inet -o GatewayPorts=yes -o AllowAgentForwarding=yes -o AllowTcpForwarding=yes -o KexAlgorithms=+diffie-hellman-group1-sha1 -o HostkeyAlgorithms=+ssh-rsa"]