FROM ubuntu RUN apt update \ && apt install -y firefox \ openssh-server \ xauth \ && mkdir /var/run/sshd \ && mkdir /root/.ssh \ && chmod 700 /root/.ssh \ && ssh-keygen -A \ && sed -i "s/^.*PasswordAuthentication.*$/PasswordAuthentication no/" /etc/ssh/sshd_config \ && sed -i "s/^.*X11Forwarding.*$/X11Forwarding yes/" /etc/ssh/sshd_config \ && sed -i "s/^.*X11UseLocalhost.*$/X11UseLocalhost no/" /etc/ssh/sshd_config \ && grep "^X11UseLocalhost" /etc/ssh/sshd_config || echo "X11UseLocalhost no" >> /etc/ssh/sshd_ config RUN echo "YOUR_PUB_KEY_HERE" >> /root/.ssh/authorized_keys ENTRYPOINT ["sh", "-c", "/usr/sbin/sshd && tail -f /dev/null"]