An SSH daemon accessible with a password specified as an environment-variable.
- Copy
dot_env_example
to.env
- Run
chmod 600 .env
to prevent other users from reading your.env
file - Edit
.env
, changing:
- The text
RANDOM_PASSWORD
to a password which is actually random - Update
LISTEN_SSHD
to specify the interface and port to listen on
Start the container:
docker compose up -d
Connect from the host system using:
ssh -p 2200 root@localhost