Skip to content

Ssh-server docker image that only forwards ports.

License

Notifications You must be signed in to change notification settings

vd2org/ssh-forward

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ssh-server

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.

Supported platforms

  • linux/amd64
  • linux/arm64

Available versions

Here

Running using just docker

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

Running using docker compose

curl https://raw.githubusercontent.com/vd2org/ssh-forward/2.0/compose.yml -o compose.yml 
docker compose up

Connecting

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.