machines/ssh

By machines

Updated about 9 years ago

Image
Networking
Security
Integration & delivery
0

6.2K

machines/ssh repository overview

Dockerfile

FROM ubuntu:16.04
MAINTAINER [email protected]

RUN apt-get -y update && \
    apt-get install -y openssh-client openssh-server && \
    # configure client
    mkdir ~/.ssh && \
    echo "Host *" > ~/.ssh/config && \
    echo "StrictHostKeyChecking no" >> ~/.ssh/config && \
    # configure server
    mkdir /var/run/sshd && \
    chmod 0755 /var/run/sshd && \
    # cleanup
    apt-get clean && \
    rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*


CMD ["/usr/sbin/sshd", "-D"]
EXPOSE 22

Tag summary

Content type

Image

Digest

Size

60.9 MB

Last updated

about 9 years ago

docker pull machines/ssh