I have three boxes. Box 1 can ssh to Box 2 and Box 3. I want to be able to ssh from Box 2 to Box 3 via Box 1. How can I do this?
I tried this (but this doesn't work).
on Box 1: ssh -t -R 9999:localhost:22 -N Box_2 on Box 1: ssh -t -L 9999:localhost:9999 -N Box_3
So, that I can do this on Box 2:
ssh localhost -p 9999
which will connect me directly to Box 3.