Skip to content

Commit

Permalink
fix: proper syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Apr 23, 2024
1 parent 0975ffa commit 55b1452
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 55b1452

Please sign in to comment.