4 ms·
Very clear explanation! Thanks. RemoteForward is often not explained with a plausible example. Hint for an addition: I find it easier to specify tunneling in ~
by weddpros 12y ago
Very clear explanation! Thanks. RemoteForward is often not explained with a plausible example.
Hint for an addition: I find it easier to specify tunneling in ~/.ssh/config file (LocalForward and RemoteForward directives).
- darthdeus 12y agoThanks! I've actually written this out of frustration with the existing tutorials and kind of for self reference, since every time I want to do a tunnel I spend 15 minutes googling it :)
- Zikes 12y agoI just set this up and there was one gotcha, the syntax is slightly different at least on my version (OpenSSH_6.6p1 Ubuntu-2ubuntu1). The LocalForward and RemoteForward takes two arguments instead of one, so I had to use: LocalForward localhost:8000 localhost:80 There were a lot of examples online of the syntax being just like the command line, so mine's either very outdated or it was recently changed.