https://github.com/frontmage/ssh-tunnel
Easy to use SSH Tunnel based in the Alpine Linux docker image
https://github.com/frontmage/ssh-tunnel
Last synced: 6 months ago
JSON representation
Easy to use SSH Tunnel based in the Alpine Linux docker image
- Host: GitHub
- URL: https://github.com/frontmage/ssh-tunnel
- Owner: FrontMage
- License: mit
- Created: 2018-08-21T03:54:15.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-21T04:57:24.000Z (almost 8 years ago)
- Last Synced: 2025-02-05T16:39:22.616Z (over 1 year ago)
- Language: Dockerfile
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# alpine-ssh-tunnel
Easy to use SSH Tunnel based in the Alpine Linux docker image
Based on https://github.com/iadknet/docker-ssh-client-light with some tweaks/customizations.
## Build
```
docker build --no-cache -t [image-name]:latest .
```
## Usage
```yaml
version: "3"
services:
tunnel:
image: "ssh-tunnel:latest"
container_name: "ssh-tunnel"
volumes:
- "~/.ssh/id_rsa:/id_rsa"
environment:
- LOCAL_PORT=9000
- REMOTE_HOST=10.0.100.5
- REMOTE_PORT=9000
- SSH_USER=dfwang
- SSH_HOST=202.114.96.180
- ID_FILE=/id_rsa
ports:
- 9000:9000
```