开发者

SSH Dynamic Port Forwarding ('ssh -D') in Python

开发者 https://www.devze.com 2023-01-05 14:51 出处:网络
I\'m lookin开发者_开发百科g 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\

I'm lookin开发者_开发百科g 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.


Have you tried Paramiko?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消