logoalt Hacker News

Magicrafter13 • yesterday at 6:09 PM • 2 replies • view on HN

oh wow, how can your ssh config change based on the network you're using?


Replies

Meneth • yesterday at 8:06 PM

ssh_config allows several ways to execute arbitrary shell commands, such as "Match exec" and "ProxyCommand". Specify a program that can detect networks and choose different connections. Then the config file itself wouldn't change.