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