ssh through and to

From thelinuxwiki
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