There isn't a built-in way in ssh to do this, other than to use port forwarding. However, there is a way that works reasonably well - the ProxyCommand setting for ssh. You can specify that on a per-host basis in ~/. ssh/config and use it to specify the command to run to connect to the remote ssh port.