ssh through and to

From thelinuxwiki
Revision as of 19:31, 23 May 2014 by Nighthawk (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

sometimes we need to ssh through and intermediate server to gain access to anther. Why not do it in one step? Why not ssh "through and to"?

$ ssh -A -t user@first_intermediate_host ssh -A usernameb@final_destination