説明なし

Fabian Peter Hammerle 660da4f93c added note regarding "host.containers.internal" 3 年 前
CHANGELOG.md 9d11518e92 configure remote bind port via $BIND_PORT 4 年 前
Dockerfile 9d11518e92 configure remote bind port via $BIND_PORT 4 年 前
README.md 9d11518e92 configure remote bind port via $BIND_PORT 4 年 前
docker-compose.yml 7eac0233fb replace Makefile with docker-compose.yml 5 年 前
entrypoint.sh 660da4f93c added note regarding "host.containers.internal" 3 年 前
known_hosts b533f34636 forward tcp port 22 of docker host to serveo.net 5 年 前
ssh_config 74d4877fd2 set ServerAliveInterval to prevent idle connection from timing out 5 年 前

README.md

docker: ssh remote forwarding 🐳

repo: https://git.hammerle.me/fphammerle/docker-ssh-remote-forwarding

docker hub: https://hub.docker.com/r/fphammerle/ssh-remote-forwarding

forward tcp port 22/ssh

$ docker run --rm -e BIND_ADDRESS=host-alias fphammerle/ssh-remote-forwarding
+ exec /bin/sh -c 'ssh -T -R $BIND_ADDRESS:22:$DOCKER_HOST_ADDRESS:22 serveo.net'
Hi there
Authenticated to serveo.net ([159.89.214.31]:22).
Forwarding SSH traffic from alias "host-alias"

connect via jump host

$ ssh -J serveo.net host-alias

change remote bind port

$ docker run -e BIND_PORT=2222 …