My remote hosts are on srvXX.remote.com. I have a jump host jump.remote.com. I want to be able to type ssh srv42.remote.com and connect, without first having to ssh to jump.remote.com.

My .ssh/config:

Host jumpremote
    hostname jump.remote.com
    User     jumpuser

Host *.remote.com
    HostName            %h
    Port                22
    User                root
    IdentityFile        ~/.ssh/id_rsa
    ProxyCommand        ssh -qW %h:%p jumpremote

By karlo