accplan commited on
Commit
6dc05b2
1 Parent(s): eca8dc5
Files changed (1) hide show
  1. Dockerfile +6 -0
Dockerfile CHANGED
@@ -1,8 +1,14 @@
1
  FROM alpine:latest
2
  LABEL maintainer="victorych"
3
  RUN apk add --update --no-cache openssh
 
4
  RUN echo 'PasswordAuthentication yes' >> /etc/ssh/sshd_config
5
  RUN echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config
 
 
 
 
 
6
 
7
  RUN cat /etc/ssh/sshd_config
8
 
 
1
  FROM alpine:latest
2
  LABEL maintainer="victorych"
3
  RUN apk add --update --no-cache openssh
4
+ RUN echo 'ListenAddress 0.0.0.0' >> /etc/ssh/sshd_config
5
  RUN echo 'PasswordAuthentication yes' >> /etc/ssh/sshd_config
6
  RUN echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config
7
+ RUN echo 'PubkeyAuthentication yes' >> /etc/ssh/sshd_config
8
+ RUN echo 'AllowTcpForwarding yes' >> /etc/ssh/sshd_config
9
+ RUN echo 'PermitTunnel yes' >> /etc/ssh/sshd_config
10
+ RUN echo 'GatewayPorts yes' >> /etc/ssh/sshd_config
11
+ RUN echo 'PidFile /home/user/ssh.pid' >> /etc/ssh/sshd_config
12
 
13
  RUN cat /etc/ssh/sshd_config
14