Advertisement
Guest User

Untitled

a guest
Feb 20th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. FROM picoded/ubuntu-openjdk-8-jdk
  2. RUN apt-get update && apt-get install -y openssh-server
  3. RUN mkdir /var/run/sshd
  4. RUN echo 'root:toor' | chpasswd
  5. RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
  6. # SSH login fix. Otherwise user is kicked off after login
  7. RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
  8. ENV NOTVISIBLE "in users profile"
  9. RUN echo "export VISIBLE=now" >> /etc/profile
  10. EXPOSE 22
  11. CMD ["/usr/sbin/sshd", "-D"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement