Dockerized SSH service, built on top of official Ubuntu images.
Base:
Image specific:
Config:
PermitRootLogin yesUsePAM no/usr/sbin/sshd -Droot$ sudo docker run -d -P --name test_sshd rastasheep/ubuntu-sshd:14.04
$ sudo docker port test_sshd 22
0.0.0.0:49154
$ ssh root@localhost -p 49154
# The password is `root`
root@test_sshd $
If you are making the container accessible from the internet you'll probably want to secure it bit. You can do one of the following two things after launching the container:
docker exec -ti test_sshd passwd$ docker exec test_sshd passwd -d root
$ docker cp file_on_host_with_allowed_public_keys test_sshd:/root/.ssh/authorized_keys
$ docker exec test_sshd chown root:root /root/.ssh/authorized_keys
If you run into any problems with this image, please check (and potentially file new) issues on the rastasheep/ubuntu-sshd repo, which is the source for this image.
Content type
Image
Digest
Size
204.9 MB
Last updated
about 4 years ago
docker pull madeye/ubuntu-sshd:20.04