ProxyCommand
ProxyCommand is an SSH client configuration directive that specifies an external command used to establish the network connection to the remote host. It enables tunneling through intermediaries such as proxies, bastion hosts, or custom network setups. The directive is supported by OpenSSH in ssh_config and can be used on the command line with the -o option.
When an SSH connection is initiated, the SSH client launches the program named by ProxyCommand. The program
Common use cases include routing connections through a forward proxy or SOCKS proxy, connecting via a jump
ProxyCommand remains flexible but can add complexity and potential security considerations, since it executes external programs