Dynamic SSH port forwarding ('ssh -D') in Python

I am looking for a way to implement SSH Dynamic Port Forwarding ('ssh -D') in Python. The problem is that it should work under Windows, that is, run SSH using popen / pexec / etc. will not work. Any ideas?

amuses

Bruno Neri.

+3
source share
2 answers

Have you tried Paramiko ?

+1
source

There are ssh executables for Windows, so you can use a subprocess. An approach. This is not entirely elegant; a better Python approach would be better.

+1
source

Source: https://habr.com/ru/post/1752280/


All Articles