portforwarding on davidchua https://dchua.com/tags/portforwarding/ Recent content in portforwarding on davidchua Hugo -- gohugo.io en-us Sat, 08 Mar 2014 00:00:00 +0000 SSH Portforwarding https://dchua.com/posts/2014-03-08-ssh-portforwarding/ Sat, 08 Mar 2014 00:00:00 +0000 https://dchua.com/posts/2014-03-08-ssh-portforwarding/ When having a remote computer (A) in which you’re trying to access the port :3000, you can setup a reverse portforwarding with the following command: $ ssh -L <port that you want to access locally>:localhost:<port that you want to connect to> <user>@<ip> $ ssh -L 3000:localhost:3000 pi@myipaddress This way, you can access http://localhost:3000 and it is actually communicating with myipaddress:3000. All securely too!