10
10
What is the difference in functionality between the two? I'm a bit confused by it.
Local forwarding makes a remote port locally available.
Remote forwarding makes a local port remotely available.
But this 'availability' will work in both directions... or does it?
E.g. the following (issued from a host 'home')
ssh -R 1234:localhost:2345 user@work
This will establish a secure tunnel between work::1234 and home::2345, right?
If I put in anything on one end, it will come out on the other end.
But then, I can achieve the same by the following call from the host 'work':
ssh -L 1234:localhost:2345 user@home
So, the only difference is the where I call it from, correct?
In your example there is no difference in functionality. You sort-of self-compensate for using the opposite argument by interchanging target hosts. Had you not done this and used both of them from within 1 single host - it would already trigger a completely opposite behavior. – XXL – 2011-11-02T18:28:08.483