Dockerfile FROM ubuntu:16.10 MAINTAINER Jack Kim RUN apt-get update && apt-get install -y openssh-server RUN mkdir /var/run/sshd RUN echo 'root:newpassword' | chpasswd RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config #SSH login fix. Otherwise user is kiccked off after login RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@..