Technology

Jumphost SSH config

Oh, you have a jumphost? And then you want to get to another server that is behind that server on a private network?  If both servers are configured with the same key this can be accomplished by putting an SSH config file entry like the one below:
Host jump.amster
  User cloud-user
  IdentityFile ~/.ssh/amsterdam-blockchain.pem
  Hostname 173.63.1.2
Host amster
  User cloud-user
  IdentityFile ~/.ssh/amsterdam-blockchain.pem
  Hostname 10.0.0.6
  ProxyCommand ssh  -W %h:%p jump.amster
To get to the amster server I now just run:
ssh amster
It runs through the jump.amster server and instant access.