What -L does is tell ssh to make a (tunneled) port forward of its own after connecting to the SSH server. This is very different from what the -L option does. If the router is forwarding port 70 to port 22 of the internal ssh server you want to connect to, then from the outside you'd connect with something like: ssh -p 70 that I'm using -p 70 to control what port it connects to on the "server" (which is actually the router, but since the connection comes in on port 70 it should be forwarded to port 22 on the internal server). If I understand the setup properly, you're using the wrong option to control what port it makes the connection over.
0 Comments
Leave a Reply. |