OpenSSH: Using a Bastion Host

Quick and dirty OpenSSH configlet here. If you have a set of hosts or devices that require you to first jump through a bastion host, the following will allow you to run a single ssh command:

::: highlight Host * ProxyCommand ssh -A nc %h %p :::

Change the Host * line to best match the hostnames that require a bastion host.

My Bookshelf

Reading Now

Other Stuff