Sign inSign up

karlma/ubuntu-sshd

By karlma

•Updated over 2 years ago

Image
0

273

karlma/ubuntu-sshd repository overview

 FROM       ubuntu:16.04
 MAINTAINER Karl Ma
 
 RUN apt-get update
 
 RUN apt-get install -y openssh-server
 RUN mkdir /var/run/sshd
 
 RUN echo 'root:root' |chpasswd
 
 RUN sed -ri 's/^PermitRootLogin\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config
 RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config
 
 EXPOSE 22
 
 CMD    ["/usr/sbin/sshd", "-D"]

Tag summary

Content type

Image

Digest

Size

102 MB

Last updated

about 9 years ago

docker pull karlma/ubuntu-sshd