This container image provides an SSH server such that remote clients can connect through this server to other SSH servers. This is often necessary in high security environments where firewalls, routing, and addressing prevent direct access to the desired servers.
Connect to a server through the bastion:
ssh -A -o ProxyCommand='ssh -W %h:%p -p 2200 bastion@localhost' user@backendserver
In practice localhost would be the hostname of a machine running this container and user@backendserver would be the user and hostname of the machine you wanted to connect.
To avoid using the long form ssh command above, you can add this option to be applied by default in your ssh client user config. It's even possible to use wildcards for host to use the bastion as a proxy for an entire domain.
~/.ssh/config snippet:
Host foo
HostName foo
User me
ProxyCommand ssh -W %h:%p -p 2200 bastion@docker
bastionContent type
Image
Digest
Size
6.7 MB
Last updated
about 6 years ago
docker pull evrythngltd/evt-ops-ecs-ssh-bastion