Sign inSign up

cacack/lobby

By cacack

•Updated over 7 years ago

A dockerized sshd bastion host

Image
0

373

cacack/lobby repository overview

⁠lobby

A hardened dockerized sshd bastion host based on Alpine Linux. Initally based on code in chentmin/bastion⁠.

⁠Setup

Create an authorized_keys file with the public keys to accept connections from. Then, create and run the container like so:

docker run \
  --name lobby \
  --publish 522:5522 \
  --volume ${PWD}/authorized_keys:/home/bellhop/.ssh/authorized_keys:ro \
  --restart always \
  --detach \
  cacack/lobby

⁠Usage

Using a recent version of openssh which support the -J jumphost argument:

⁠Security

The bastion container has been hardened to minimize the attack surface. All commands except for what is needed to run ssh/sshd have been removed. sshd runs as a non-privileged user and has been configured based on hardening guidelines⁠.

On the docker host, I perfer to publish on a privileged port as docker runs as root.

⁠References

Tag summary

Content type

Image

Digest

Size

4.9 MB

Last updated

over 7 years ago

docker pull cacack/lobby