Bastion SSH Host Docker Image.
This contains a SSH Docker Image which can be used to run a bastion SSH service e.g. in an ECS environment to reach internal resources via ssh using srv-records.
The image contains a ssh-srv wrapper script and other useful tools.
To test the image locally:
export GITHUB_USERNAME=YOUR_GITHUB_USERNAME
docker run --rm -p 1122:22 -e IMPORT_GITHUB_PUB_KEYS=$GITHUB_USERNAME croneu/bastion-ssh
Then connect to the ssh service:
ssh ssh-user@localhost -p1122
You can set PROMPT_INFO environment variable which is shown besides the prompt when logging in.
Helpful if you have multiple bastions for multiple environments so that you know where you are
logged in currently.
For compatibility with other environments, fallback to ENV in case this variable is set.
Following tools are installed:
Use nc-srv wrapper to connect to SSH servers which are reachable
through their SRV-records:
For example:
Host ptaheute-staging
User application
Hostname pta-staging.local
ProxyCommand ssh -A ptaheute-bastion nc-srv %h
Host ptaheute-bastion
Hostname net.aws.ptaheute.de
User ssh-user
t.b.c.
Content type
Image
Digest
sha256:5419e52ba…
Size
214.2 MB
Last updated
about 3 years ago
docker pull croneu/bastion-ssh