1
1
Using SSH, I can do something like ssh -R 8080:127.0.0.1:8080 remote.host
to forward my local port 8080 to a remote host.
I'm trying to do something similar, but the port I need to forward is on a remote machine that I lack shell access to. For example, if the remote machine is located at 192.168.1.10
, I'd like remote.host:8080
to be coming from 192.168.1.10:8080
.
Can this be done with plain SSH? At some point I'll simplify this by just doing a port forward in the router, but I won't have that level of access for a few days.
1So what kind of access do you have on the remote machine? – jjlin – 2013-12-23T21:06:35.890
I don't have any remote access to the remote machine. The only service it makes available is an HTTP server on port 8080. – Dan – 2013-12-23T21:38:39.527
I'm still not sure I understand what you're trying to do. Can you confirm or correct: you have three computers, let's call them webserver (
192.168.1.10
), which you have no ssh access to, but has a webserver running on it; external which you have ssh access to, and want the webserver available through; and local which is your computer. You want to be able to go tohttp://external
and get tunnelled to the webserver. – tenorkev – 2013-12-23T22:12:30.900That's correct. n.st's answer is what I wanted. – Dan – 2013-12-23T22:56:54.223