File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ RUN sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/ss
1818RUN sed 's@session\s *required\s *pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
1919ENV NOTVISIBLE "in users profile"
2020RUN echo "export VISIBLE=now" >> /etc/profile
21- RUN mkdir -p /home/ root/.ssh
22- RUN touch /home/ root/.ssh/known_hosts
21+ RUN mkdir -p /root/.ssh
22+ RUN touch /root/.ssh/known_hosts
2323EXPOSE 22
2424CMD ["/usr/sbin/sshd" , "-D" ]
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ RUN sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/ss
2929RUN sed 's@session\s *required\s *pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
3030ENV NOTVISIBLE "in users profile"
3131RUN echo "export VISIBLE=now" >> /etc/profile
32- RUN mkdir -p /home/ root/.ssh
33- RUN touch /home/ root/.ssh/known_hosts
32+ RUN mkdir -p /root/.ssh
33+ RUN touch /root/.ssh/known_hosts
3434EXPOSE 22
3535CMD ["/usr/sbin/sshd" , "-D" ]
You can’t perform that action at this time.
0 commit comments