3
I have three computers, A, B, C. A is the computer I'm working on, C is the remote computer I'd like to access. However C can only be accessed through B. Only B has a ssh server, and only A has a ssh client.
What command am I to use (preferably on A) so that I can connect to C (port 80) through B ? For example B should forward all incoming port 12345 to C:80.
I know this is a common question and I found a ton of commands on google but none seemed to work.
Once it is set up, I'm supposed to just use localhost:5678 on A, which connects to B:1234, and then forwards to C:80.
Thanks.
This is it, thank you. However, I do get to the prompt of B. If I want to avoid that, I have to add -nN, right ? – Car981 – 2013-02-25T16:06:13.860
the
-N
is enough to not start a remote shell. if you wish to put ssh into background then, yes, add the-n
switch – Serge – 2013-02-25T16:09:49.547