I'm having a lot of trouble using SSH tunnel to access my local host. I have been using the below and can't access my locahost over the web like this.
ssh -nNt -vg -g -R :9999:localhost:8080 user@tunnel.mydomain.com
I have tried various combinations of settings and have not been able to get it to work. Here is the response I get in terminal, everthing looks good but when I go to tunnel.mydomain.com I just see the site which is there
Authenticated to tunnel.mydomain.com ([69.163.220.169]:22).
debug1: Remote connections from :9999 forwarded to local address localhost:8080
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: remote forward failure for: listen 9999, connect localhost:8080
Warning: remote port forwarding failed for listen port 9999
debug1: All remote forwarding requests processed
has anyone got any tips? I really need this setup so I can test an application which needs to be avaialable over the web.