https://github.com/vd2org/ssh-forward
Ssh-server docker image that only forwards ports.
https://github.com/vd2org/ssh-forward
docker network portmapping ssh
Last synced: about 1 year ago
JSON representation
Ssh-server docker image that only forwards ports.
- Host: GitHub
- URL: https://github.com/vd2org/ssh-forward
- Owner: vd2org
- License: mit
- Created: 2019-03-02T20:02:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-10-16T11:02:28.000Z (over 3 years ago)
- Last Synced: 2025-02-04T08:44:18.982Z (over 1 year ago)
- Topics: docker, network, portmapping, ssh
- Language: Dockerfile
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/users/vd2org/packages/container/package/ssh-forward)
### Running using just docker
```bash
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
```shell
curl https://raw.githubusercontent.com/vd2org/ssh-forward/2.0/compose.yml -o compose.yml
docker compose up
```
### Connecting
```bash
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.