954,190 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

port forwarding in Python

I had a problem in connecting to remote MySQL server, which is being firewall protected. I searched in Internet to find possible solution, I found, I have to use port forwarding using SSH command, and I am using WinXP.

But unfortunately, SSH command is not there in Windows.

I used PLINK command for port forwarding. I was able to connect to MySQL on remote host. But the problem is, when I run command it opens a command prompt, which I don't to run as seperate window, when I run this command.

Is there any way I can hide this command prompt being displayed?

following is the code I run to port forwarding(local port forwarding)

import os
os.system("plink -v -l -N -batch username -pw password -L 3307:remote.MySQL.server:3306 remote.firewall.server")

Any advise is greatly appreciated.


Thanks.

Sudhir.

katharnakh
Posting Whiz in Training
237 posts since Jan 2006
Reputation Points: 19
Solved Threads: 34
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You