Created
February 17, 2015 04:25
-
-
Save dkoppel/88cf09c3878341771630 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A quick little sshd dockerfile for dockerbot's shell function | |
FROM ubuntu:14.04 | |
RUN apt-get update && apt-get install -y openssh-server | |
RUN mkdir /var/run/sshd | |
# Set a root password here, or create additional accounts for SSH access. | |
RUN echo 'root:password' | chpasswd | |
# Permit root logins via SSHd conf. | |
RUN sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config | |
EXPOSE 22 | |
CMD ["/usr/sbin/sshd", "-D"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment