Skip to content

Instantly share code, notes, and snippets.

@awesomebytes
Created June 21, 2019 08:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awesomebytes/65a10c21163e752238fbcecae2762001 to your computer and use it in GitHub Desktop.
Save awesomebytes/65a10c21163e752238fbcecae2762001 to your computer and use it in GitHub Desktop.
How to ssh into machine hopping thru another one (and send X forwarded too)

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment