Host server HostName some.server User git IdentityFile ~/.ssh/id_ed25519 IdentitiesOnly yes Host server2 Hostname 192.168.113.18 User root ProxyJump root@web:22 IdentityFile ~/.ssh/id_rsa IdentitiesOnly yes ssh username@jumphost -N -f -L localport:targethost:targetport