For Linux and macOS, add these lines to .ssh/config # Default configuration for the target when it is localHost target.domain.name HostName target.domain.name # Override and apply ProxyJump only if the target is NOT locally reachableMatch host target.domain.name exec "!