first push
This commit is contained in:
7
sshd/Dockerfile
Normal file
7
sshd/Dockerfile
Normal 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
11
sshd/docker-entrypoint.sh
Normal 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
11
sshd/sshd_config
Normal 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
|
||||
Reference in New Issue
Block a user