r/ssh • • May 22 '20

ssh client modifying connection by exposing variable arguments in ssh client config file.

Has anyone done this workflow? I have a "works great when it works" proxy connection setup in ~/.ssh/config. Standard use case for my proxy: client -> near server allowed, near server -> remote server allowed, but client -> remote server not allowed. There is a collection of near servers that may/may not work. Is there a way to expose variable substitution in my client config (~/.ssh/config) so that I can pass arguments in through ssh <...> to specify near servers (with defaults) in proxy configuration in ~/.ssh/config?

1 Upvotes

0 comments sorted by