Sign inSign up

ravik694/c7-systemd-sshd

By ravik694

•Updated over 10 years ago

CentOS 7 image for 2016 Hack Day - has systemd, sshd installed and enabled

Image
2

10K+

ravik694/c7-systemd-sshd repository overview

Dockerfile⁠

Run container in a CentOS 7 host with:

$ docker run -ti -d -P --privileged --name test_sshd -v /sys/fs/cgroup:/sys/fs/cgroup:ro -v /tmp/$(mktemp -d):/run ravik694/c7-systemd-sshd

Locate the container's IP address with:

$ docker inspect test_sshd | grep '"IPAddress":'

Connect to the container with SSH from the host (the root password is set to a default of 'toor' and should be changed:

$ ssh root@<ip_address>
[root@4b162f189534 ~]# passwd

Tag summary

Content type

Image

Digest

Size

141.6 MB

Last updated

over 10 years ago

docker pull ravik694/c7-systemd-sshd