dependabot[bot] e39baa468f build(deps): bump docker/build-push-action from 5.1.0 to 5.2.0 (#74) | há 8 meses atrás | |
---|---|---|
.github | há 8 meses atrás | |
CHANGELOG.md | há 2 anos atrás | |
Dockerfile | há 9 meses atrás | |
Makefile | há 3 anos atrás | |
README.md | há 5 anos atrás | |
docker-compose.yml | há 5 anos atrás | |
entrypoint.sh | há 5 anos atrás | |
sshd_config | há 2 anos atrás |
Docker Hub: https://hub.docker.com/r/fphammerle/ssh-bastion
bastion $ docker run --name ssh-bastion -p 2222:22 -e USERS=alice,bob fphammerle/ssh-bastion
bastion $ docker cp alice-keys ssh-bastion:/home/alice/.ssh/authorized_keys
bastion $ docker cp bob-keys ssh-bastion:/home/bob/.ssh/authorized_keys
alice $ ssh -N -R 28080:localhost:8080 -p 2222 bastion
bob $ ssh -N -L 8081:localhost:28080 -p 2222 bastion
bob $ curl http://localhost:8081/hello_bob.html
$ docker run --name ssh-bastion \
--publish 2222:22 --env USERS=alice,bob \
--volume bastion-host-keys:/etc/ssh/host_keys \
--volume alice-ssh-config:/home/alice/.ssh:ro \
--volume bob-ssh-config:/home/bob/.ssh:ro \
--init --rm \
fphammerle/ssh-bastion
$ ssh -N -R 22221:localhost:22 -p 2222 alice@bastion
$ ssh -J bob@bastion:2222 -p 22221 localhost
git clone https://github.com/fphammerle/docker-ssh-bastion
$USERS
and volumes in docker-compose.ymldocker-compose up