Skip to content

Instantly share code, notes, and snippets.

@crosbymichael
Last active January 8, 2022 13:47
Show Gist options
  • Select an option

  • Save crosbymichael/5794209 to your computer and use it in GitHub Desktop.

Select an option

Save crosbymichael/5794209 to your computer and use it in GitHub Desktop.

Revisions

  1. crosbymichael revised this gist Jun 17, 2013. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion Dockerfile
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,6 @@ ADD sshd.conf /etc/supervisor/conf.d/sshd.conf

    RUN mkdir -p /var/run/sshd

    #RUN echo -e "root\nroot" | (passwd --stdin $USER)
    RUN echo "root:root" | chpasswd

    EXPOSE 22
  2. crosbymichael created this gist Jun 17, 2013.
    17 changes: 17 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    FROM ubuntu

    RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
    RUN apt-get update
    RUN apt-get upgrade

    RUN apt-get install -y openssh-server supervisor
    ADD sshd.conf /etc/supervisor/conf.d/sshd.conf

    RUN mkdir -p /var/run/sshd

    #RUN echo -e "root\nroot" | (passwd --stdin $USER)
    RUN echo "root:root" | chpasswd

    EXPOSE 22

    CMD /usr/bin/supervisord -n
    6 changes: 6 additions & 0 deletions sshd.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    [program:sshd]
    directory=/usr/local/
    command=/usr/sbin/sshd -D
    autostart=true
    autorestart=true
    redirect_stderr=true