This image opens an ssh server which allows only permitted TCP forwarding connections.
This is especially useful in combination with the ssh-forwarder image to connect services across different machines via a secure ssh connection.
- Pull from Docker Hub, download the package from Releases or build using
builder/build.sh
AUTHORIZED_PUBLIC_KEYS- Public keys with access to the ssh server. For example
ssh-rsa AAAAB3Nz... user@example.madebytimo.de. This will overwrite theauthorized_keysfile.
- Public keys with access to the ssh server. For example
HOST_KEY- Host key to use for the ssh server. This will overwrite the
host_keyfile.
- Host key to use for the ssh server. This will overwrite the
PERMIT_LISTEN- The allowed addresses to listen in the format
HOST:PORTorPORT.
- The allowed addresses to listen in the format
PERMIT_OPEN- The allowed destinations to open in the format
HOST:PORT.
- The allowed destinations to open in the format
/media/ssh/authorized_keys- Public keys with access to the ssh server.
/media/ssh/host_key- Host key to use for the ssh server.
To build run the docker container for development execute:
docker compose --file docker-compose-dev.yaml up --build