views:

42

answers:

2

I'm looking for a way to implement SSH Dynamic Port Forwarding ('ssh -D') under Python. The problem is that it has to work under Windows, i.e., running SSH with popen/pexec/etc. won't work. Any ideas?

cheers,

Bruno Nery.

+1  A: 

Have you tried Paramiko?

jathanism
Does Paramiko provides dynamic port forwarding? I didn't find any reference to it.
Bruno Nery
+1  A: 

There are ssh executables for Windows, so you can uses the subprocess.Popen approach. This is not exactly elegant, a pure Python approach would be better.

Fabian
I don't like the idea of being dependent on another executable. Anyhow, if there is a DLL that does dynamic port forwarding, then we're talking :)
Bruno Nery