first push

This commit is contained in:
2020-11-28 02:00:51 +01:00
parent f69c1dc098
commit 3a05927a60
9 changed files with 246 additions and 0 deletions

7
sshd/Dockerfile Normal file
View File

@@ -0,0 +1,7 @@
FROM ubuntu
RUN apt-get update && apt-get install -y openssh-server
RUN mkdir /var/run/sshd
COPY sshd_config /etc/ssh/sshd_config
COPY docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]

11
sshd/docker-entrypoint.sh Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
cleanup() {
exit
}
trap cleanup HUP INT QUIT TERM
echo "root:$(cat $ROOT_PASSWORD_FILE)" | chpasswd
/usr/sbin/sshd -D
#exec "$@"

11
sshd/sshd_config Normal file
View File

@@ -0,0 +1,11 @@
PermitRootLogin yes
ChallengeResponseAuthentication no
UsePAM yes
AllowAgentForwarding yes
AllowTcpForwarding yes
GatewayPorts yes
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
PermitTTY yes
PrintMotd no