Update Dockerfile
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
FROM ubuntu:latest
|
FROM ubuntu:latest
|
||||||
ENTRYPOINT ["/usr/sbin/sshd", "-D", "-e"]
|
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
export DEBIAN_FRONTEND=noninteractive && \
|
export DEBIAN_FRONTEND=noninteractive && \
|
||||||
@@ -27,3 +26,5 @@ RUN \
|
|||||||
sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config && \
|
sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config && \
|
||||||
echo 'root:root' | chpasswd && \
|
echo 'root:root' | chpasswd && \
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
ENTRYPOINT ["/usr/sbin/sshd", "-D", "-e"]
|
||||||
|
|||||||
Reference in New Issue
Block a user