How to ssh into machine hopping thru another one (and send X forwarded too) Using -v to see what is going on, -Y to forward X and -J to do the hop (needs OpenSSH 7.3+). ssh -v -Y -J user@intermediatemachine user@finalmachine