Update Dockerfile
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
@@ -15,6 +15,7 @@ RUN useradd -u 1000 xd
|
|
15 |
RUN echo 'xd:xd' | chpasswd
|
16 |
|
17 |
# Generar claves de host SSH
|
|
|
18 |
RUN sed -ri 's/^#?PermitRootLogin\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config
|
19 |
RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config
|
20 |
RUN mkdir /root/.ssh
|
@@ -22,4 +23,4 @@ RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
22 |
|
23 |
EXPOSE 7860
|
24 |
|
25 |
-
CMD /usr/sbin/sshd -D & wetty -p 7860 --allow-remote-hosts && tail -f /dev/null
|
|
|
15 |
RUN echo 'xd:xd' | chpasswd
|
16 |
|
17 |
# Generar claves de host SSH
|
18 |
+
RUN ssh-keygen -A
|
19 |
RUN sed -ri 's/^#?PermitRootLogin\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config
|
20 |
RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config
|
21 |
RUN mkdir /root/.ssh
|
|
|
23 |
|
24 |
EXPOSE 7860
|
25 |
|
26 |
+
CMD /usr/sbin/sshd -D & wetty -p 7860 --allow-remote-hosts && tail -f /dev/null
|