</source>
== Man in the Middle (JumpHost or Firewall) ==
In Maine they would say, "[https://www.youtube.com/watch?v=gD3cYh5Pp1I You ''can'' get there from here!]"
Sometimes you have to hop through a hoop before you can get to your destination host. In case you have to go from A through B to get to C, (A ==> B ==> C) here's how <ref> https://serverfault.com/questions/337274/ssh-from-a-through-b-to-c-using-private-key-on-b </ref>
<source lang="bash">
ssh -t B ssh C
ServerAliveInterval 60
</source>
Since there are more ways than one to do something, you might also try the <code>ProxyCommand</code> option; If <code>-W</code> is not supported in your version of SSH, then your proxy command will need to use netcat.
<source lang="bash">
ssh -o ProxyCommand="ssh -W %h:%p firewall.example.org" server2.example.org
ssh -o ProxyCommand="nc %h:%p firewall.example.org" server2.example.org
</source>
== More ==
More configuration info is on the [[SSH]] page