Sign inSign up

eyedevelop/ubuntu-sshd

By eyedevelop

•Updated about 6 years ago

Simple container for providing SSH access.

Image
0

1.0K

eyedevelop/ubuntu-sshd repository overview

⁠Ubuntu SSHd

This is a very simple container to provide containerised SSH access to a Ubuntu system. The root password is set randomly on startup and listed in the Docker logs for the container. Systemd does not work inside containers created with this image (neither does it in most other containers, nor should it).

⁠How to run

$ docker run -dp <some_port>:22 eyedevelop/ubuntu-sshd:20.04

This creates a container that people can SSH into, on the port you chose. Provide the root password to the person that is authorised to use the container.

⁠Example

Let's say you have a system on 10.0.200.5 and you want to give someone access to this machine, but containerised. You would run the following command on the server:

$ docker run -dp 5050:22 eyedevelop/ubuntu-sshd:20.04

Now the authorised person can access this container, provided he got the password from you, with:

$ ssh -p 5050 [email protected]

⁠Good luck and have fun!

If you like this image, please donate a coffee⁠ :)

Tag summary

Content type

Image

Digest

Size

85.5 MB

Last updated

about 6 years ago

docker pull eyedevelop/ubuntu-sshd