On Fri, 4 Dec 2020, David Barr wrote:
The next customization for your ssh config file ensures any SSH
session destined for *.my.com uses your control session.
# part of ~/.ssh/config
Host *.my.com
CheckHostIP no
ProxyCommand ssh mybastion -W %h:%p
The important thing to note here is that you'll need to use fully
quallified domain names (e.g., dev.my.com) rather than short versions
(dev) if you want to use the multiplex connection.
You can still use short names via the HostName directive.
Host dev
HostName dev.my.com
CheckHostIP no
ProxyCommand ssh mybastion -W %h:%p
True! That might be handy if you have a small number of hosts with
little turnover. My work network is hundreds of hosts, so I don't try
to list all the unqualified names ... I'd be exhausted! :-)
--
Paul Heinlein
[email protected]
45°38' N, 122°6' W
_______________________________________________
PLUG: https://pdxlinux.org
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug