0

Since I'm running on Windows Env so I cannot use any other lib to make connection to my server using ssh and open port forwarding. So i found this library: sshtunnel

What i did was:

from sshtunnel import SSHTunnelForwarder

server = SSHTunnelForwarder(
ssh_address=('xx.xxx.xxx.xxx', 22),
ssh_username="admin",
ssh_password="something",
remote_bind_address=("127.0.0.1", 1088))

server.start()

print(server.local_bind_port)

Then in firefox, I try to connect through my sock using host = 127.0.0.1 and port 1088. But somehow i keep getting rejected by the proxy. The SSH is working properly as I can connect using putty or bitvise.

I've been trying to get in touch with the author of the lib but haven't got any reponse yet. Anyone has any idea on this problem? Thanks

Kiddo
  • 1,910
  • 8
  • 30
  • 54

1 Answers1

0

You may have to bypass proxy for your local addresses for some versions of Firefox.

  1. click "Options."

  2. Select the "Advanced" -> "Network" tab.

  3. Choose "settings" and open connection settings dialog. "Manual Proxy Config" should be selected.

  4. Enter local IP addresses/hostnames you want to bypass i.e. 127.0.0.1, and restart firefox.

See the discussion here

Let me know if it works.

Community
  • 1
  • 1
Pandemonium
  • 7,724
  • 3
  • 32
  • 51
  • Thanks, i did as what they have instructed, check the "bypass for local" for Chrome/IE and make sure i have "127.0.0.1;localhost" in firefox setting, with the proxy set. Still get "The proxy server is refusing connections" – Kiddo Feb 03 '15 at 04:45