Created
April 16, 2014 04:45
-
-
Save pokle/10808069 to your computer and use it in GitHub Desktop.
Run ssh server inside a Centos/Redhat Docker container
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
# ssh server | |
# Don't forget to run '/usr/sbin/sshd -D' if you actually want to ssh into this container | |
RUN yum install -y openssh-server | |
RUN ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N '' | |
RUN ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N '' | |
ADD src/sshd/sshd_config /etc/ssh/sshd_config | |
RUN echo root:welcome1 | chpasswd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yum update and can be issue with systemd.