4 ms·
ssh -R 80:localhost:8080 ubuntu@some-ec2-instance -i key.pem
by Cieplak 12y ago
ssh -R 80:localhost:8080 ubuntu@some-ec2-instance -i key.pem
- __david__ 12y agoThis has been my technique for a long time. I usually add -N, since there's usually no need to do anything on that host.
- itsadok 12y agoYou'd need to tweak the server for this to actually work. By default, remote forwarded ports are not accessible from other hosts, and non-root cannot listen on port 80. http://serverfault.com/a/133440/1726 http://serverfault.com/a/133440/1726 http://serverfault.com/a/285617/1726 http://serverfault.com/a/285617/1726