Skip to main content
1 of 3
slm
  • 379.8k
  • 127
  • 793
  • 897

You can use the ProxyCommand you can setup ssh so that it will connect to a "gateway" system and then connect to a secondary system that's behind the "gateway" system.

Host internal-host
    User sam
    IdentityFile ~/.ssh/id_rsa
    ProxyCommand ssh user@gateway nc internal-host.somedom.com %p
slm
  • 379.8k
  • 127
  • 793
  • 897