Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save douglasmiranda/58bb5e10e8e60e222965ec66e9443dbb to your computer and use it in GitHub Desktop.

Select an option

Save douglasmiranda/58bb5e10e8e60e222965ec66e9443dbb to your computer and use it in GitHub Desktop.
ssh tunnel / proxy ssh
# ~/.ssh/config
Host XXX
proxycommand ssh root@MYSERVER nc %h %p
hostname DESTINATIONSERVER
port 22
user DESTINATIONSERVER_USER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment