SSH Tunnel – Proxy Not Working From Remote Location (Login is working)

cygwinPROXYsshssh-tunnel

I have just set up a Cygwin SSH server and successfully tunneled to it from a remote location. Logging in works but when I point my browser to localhost 8888 (sock 5), all connections are refused.

How is it that I can log in, then not browse from a remote location? Could it be to do with port forwarding on my router? (currently have 22 forwarded to the SSH server machine).

Other info…

  • I can SSH into the server on the local machine and successfully
    browse.
  • I am connecting remotely with ssh -D 8888
    mysite@test.mysite.net -vv
  • Server is Windows and client is OSX (terminal)

Edit: Frustratingly, without knowingly changing anything on the server local tunnel proxying has stopped working. Both clients now connect and accept the password before debug1: Exit status 1

Best Answer

What OS is the client you are using?
Is the ssh client staying open while you are trying to connect with your browser?
If you are using the openssh client to create this tunnel, you may want to add in a -N flag to create the tunnel without requiring a command:

ssh -ND 8888 mysite@test.mysite.net -vv

You may also want to check the output of netstat after creating the tunnel, just to make sure that it is actually live.