View original Gist on GitHub
With SSH port binding you can do something like:
ssh -i developer.pem -L 8081:localhost:8081 ubuntu@52.222.222.22
Now visit localhost:8081 and it’ll connect to the remote instance
localhost:8081