port forwarding in Python

Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jan 2006
Posts: 237
Reputation: katharnakh is an unknown quantity at this point 
Solved Threads: 33
katharnakh's Avatar
katharnakh katharnakh is offline Offline
Posting Whiz in Training

port forwarding in Python

 
0
  #1
Aug 14th, 2006
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)

  1. import os
  2. 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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Python Forum


Views: 2430 | Replies: 0
Thread Tools Search this Thread



Tag cloud for Python
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC