Skip to content

Instantly share code, notes, and snippets.

@IsoLinearCHiP
Created October 29, 2014 20:22
Show Gist options
  • Select an option

  • Save IsoLinearCHiP/edbab2c43a32cff00bb8 to your computer and use it in GitHub Desktop.

Select an option

Save IsoLinearCHiP/edbab2c43a32cff00bb8 to your computer and use it in GitHub Desktop.
Setup a SSH gateway hop

Setting up a multihop ssh connection with Putty

  • In the "hostname" field in putty set the real target address (this must be resolvable by the gateway host)
  • Under Connection->Proxy select proxy type "local"
  • Enter the gateway address (as resolvable by the client computer) into the "Proxy hostname" field
  • enter the username and possibly password for the gateway
  • in the "telnet command, or local proxy command" field enter "plink -agent -l %user %proxyhost -nc %host:%port"
  • this oviously requires you to have plink either in the same folder as putty or within the global windows searchpath
  • Under Conntion->Data optionally enter the username for the target machine
  • save and you are done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment