# In this example, ssh-gateway.cns.vt.edu is the host you wish to proxy through.
#
# First, we connect to the proxy directly
# The * in the name below allows for the .ipv4 and .ipv6 host names
Host ssh-gw.cns.*vt.edu
ProxyCommand none
#
# Add other direct connect hosts in cns.vt.edu here
#
#
# Proxy all other cns hosts
Host *.cns.*vt.edu
ProxyJump user@ssh-gw.cns.vt.edu:22
#
# If you just want to proxy the OOB network
#
Host *.oob.cns.*vt.edu
ProxyJump user@ssh-gw.cns.vt.edu:22
#
# Proxy all other nis hosts
Host *.nis.*vt.edu
ProxyJump user@ssh-gw.cns.vt.edu:22
#
# If you always need to use your login on the gateway and shared on the destination
# (ssh <shared-user>@device.oob.cns.vt.edu works for occasional use)
#
Host *.oob.cns.*vt.edu
User admin
ProxyJump user@ssh-gw.cns.vt.edu:22
#
# Setting up agent forwarding
#
Host ssh-gw.cns.vt.edu
ForwardAgent yes |