I have a laptop, which I use both at work and at home.
When I am at work, I can ssh directly to any server I like.
When I'm at home, I have to go through a jumphost, to get on to the network.
I have a few entries like:
Host jump-server hostname server1 proxyjump workproxy
but I have a LOT of servers, and a few scripts that I use which ssh to specific hosts also (which means they all need command-line options to specify use of jumphost or not).
Is there a way of automating this? For example, can I set an environment option so all hosts (except workproxy) should proxyjump?