Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

    ssh -R 80:localhost:8080 ubuntu@some-ec2-instance -i key.pem


This has been my technique for a long time. I usually add -N, since there's usually no need to do anything on that host.


You'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/285617/1726




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: