mirror of
https://github.com/coralhl/sshpiper-docker.git
synced 2026-10-27 08:48:18 +03:00
Run a SSH proxy based on Alpine Linux. Small, lightweight, secure and fast
- Dockerfile 84.2%
- Shell 15.8%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| rootfs/usr/local/bin | ||
| .gitattributes | ||
| .gitignore | ||
| .woodpecker.yaml | ||
| Dockerfile | ||
| LICENSE | ||
| README.md | ||
Alpine :: SSH proxy via sshpiperd
Run a SSH proxy based on Alpine Linux. Small, lightweight, secure and fast
Run
docker run --name sshpiper \
-d coralhl/sshpiper \
-v /opt/docker/sshpiper/sshpiper.yaml:/sshpiperd/sshpiper.yaml \
-p 2222:2222 \
-e TZ=Europe/Moscow \
sshpiperd --log-level=trace yaml --config /sshpiperd/sshpiper.yaml
docker-compose.yml
services:
sshpiper:
image: coralhl/sshpiper
container_name: sshpiper
restart: unless-stopped
command: sshpiperd yaml --config /sshpiperd/sshpiper.yaml
environment:
TZ: Europe/Moscow
ports:
- 2222:2222
volumes:
- /opt/docker/sshpiper/sshpiper.yaml:/sshpiperd/sshpiper.yaml
Defaults
| Parameter | Value | Description |
|---|---|---|
user |
docker | user docker |
uid |
1000 | user id 1000 |
gid |
1000 | group id 1000 |
home |
/sshpiperd | home directory of user docker |
Environment
| Parameter | Value | Default |
|---|---|---|
SSHPIPERD_SERVER_KEY |
ed25519 server key | /etc/ssh/ssh_host_ed25519_key |
Built with
Tips
- Only use rootless container runtime (podman, rootless docker)
- If using the yaml plugin, make sure your yaml file has permissions 600
- Don't bind to ports < 1024 (requires root), use NAT/reverse proxy (haproxy, traefik, nginx)