Spaces:
Runtime error
Runtime error
ssh
Browse files- Dockerfile +9 -2
Dockerfile
CHANGED
|
@@ -113,10 +113,17 @@ RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so
|
|
| 113 |
ENV NOTVISIBLE "in users profile"
|
| 114 |
RUN echo "export VISIBLE=now" >> /etc/profile
|
| 115 |
|
| 116 |
-
|
| 117 |
-
EXPOSE 22
|
| 118 |
|
| 119 |
RUN sudo ssh-keygen -A
|
| 120 |
RUN sudo service ssh --full-restart
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
# Run SSH
|
| 122 |
CMD ["/usr/sbin/sshd", "-D"]
|
|
|
|
| 113 |
ENV NOTVISIBLE "in users profile"
|
| 114 |
RUN echo "export VISIBLE=now" >> /etc/profile
|
| 115 |
|
| 116 |
+
|
|
|
|
| 117 |
|
| 118 |
RUN sudo ssh-keygen -A
|
| 119 |
RUN sudo service ssh --full-restart
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
# Reset user to root
|
| 123 |
+
USER root
|
| 124 |
+
|
| 125 |
+
# Expose the SSH port
|
| 126 |
+
EXPOSE 22
|
| 127 |
+
|
| 128 |
# Run SSH
|
| 129 |
CMD ["/usr/sbin/sshd", "-D"]
|