MySQL Forums
Forum List  »  Connector/Python

Port forwarding in Python
Posted by: katharnakh
Date: August 14, 2006 10:37AM

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.

Options: ReplyQuote


Subject
Written By
Posted
Port forwarding in Python
August 14, 2006 10:37AM
December 08, 2006 01:18PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.