Skip to content

Instantly share code, notes, and snippets.

@cankush625
Created March 7, 2021 18:47
Show Gist options
  • Select an option

  • Save cankush625/3513ab34e53a5f32a058557af49a4746 to your computer and use it in GitHub Desktop.

Select an option

Save cankush625/3513ab34e53a5f32a058557af49a4746 to your computer and use it in GitHub Desktop.
FROM centos:centos8
RUN yum install net-tools -y
RUN yum install openssh-server -y
RUN ssh-keygen -A
RUN yum install passwd -y
RUN echo ankush | passwd root --stdin
CMD /usr/sbin/sshd && /bin/sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment