httpx/test/support/ssh/Dockerfile
2018-12-28 14:21:25 +00:00

20 lines
457 B
Docker

FROM connesc/ssh-gateway
MAINTAINER Tiago Cardoso <cardoso_tiago@hotmail.com>
RUN apk add --no-cache shadow
RUN echo -e $'\n\
PermitRootLogin prohibit-password\n\
AllowAgentForwarding no\n\
X11Forwarding no\n\
PermitTTY yes\n\
LogLevel VERBOSE\n\
AllowTcpForwarding yes\n\
PermitEmptyPasswords yes\n\
UsePAM no\n\
PasswordAuthentication no\n\
RSAAuthentication yes\n\
PubkeyAuthentication yes\n' >> /etc/ssh/sshd_config
RUN usermod --shell /bin/sh root