4

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.

2 Answers 2

1

Have you tried Paramiko?

Sign up to request clarification or add additional context in comments.

2 Comments

Does Paramiko provides dynamic port forwarding? I didn't find any reference to it.
Paramiko does not support this. But you should add your use case to the issue on Github requesting this feature: github.com/paramiko/paramiko/issues/955
1

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.

1 Comment

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 :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.