This is ssh-server docker image only for forwarding ports for development, tests and connecting to your docker networks.
For example, your can make your own ngrok or serveo. Config your nginx or traefik to forward connections to container ssh-forward and port 8080.
- linux/amd64
- linux/arm64
docker run -d --name ssh-forward \
-v /root/.ssh/authorized_keys:/home/forward/.ssh/authorized_keys:ro \
-v /etc/ssh/ssh_host_rsa_key:/etc/ssh/ssh_host_rsa_key:ro \
-v /etc/ssh/ssh_host_dsa_key:/etc/ssh/ssh_host_ecdsa_key:ro \
-v /etc/ssh/ssh_host_ed25519_key:/etc/ssh/ssh_host_ed25519_key:ro \
-p 33322:22 ghcr.io/vd2org/ssh-forward:2.0
curl https://raw.githubusercontent.com/vd2org/ssh-forward/2.0/compose.yml -o compose.yml
docker compose up
ssh -o ServerAliveInterval=3 -o ServerAliveCountMax=1 -R 8080:localhost:8080 -p 33322 -N -T forward@HOST
In this example the local port 8080
will be mapped to 8080
port on the server.