SHARE
TWEET

Dockerfile for centos-sshd

a guest Aug 25th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. FROM centos:latest
  2. RUN yum -y install openssh-server \
  3.     && /usr/sbin/sshd-keygen \
  4.     && echo 'root:password' | chpasswd \
  5.     && yum -y clean all
  6. EXPOSE 22
  7. CMD /usr/sbin/sshd -D
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top