Skip to content

Commit 78538c6

Browse files
Merge pull request #8 from intracom-telecom-sdn/dockerfile-correction
Correct location of known_hosts
2 parents 44a1b2f + 355f64d commit 78538c6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

deploy/docker/no_proxy/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ RUN sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/ss
1818
RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
1919
ENV NOTVISIBLE "in users profile"
2020
RUN 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
2323
EXPOSE 22
2424
CMD ["/usr/sbin/sshd", "-D"]

deploy/docker/proxy/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ RUN sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/ss
2929
RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
3030
ENV NOTVISIBLE "in users profile"
3131
RUN 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
3434
EXPOSE 22
3535
CMD ["/usr/sbin/sshd", "-D"]

0 commit comments

Comments
 (0)