'Ssh socksproxy using paramiko

I'am trying to replicate the following terminal command in pythons paramiko in order to establish socks proxy using server ip through my local port

This is the terminal command:

ssh - D servername@server ip

Or with example

Ssh - D 4535 [email protected]

Any suggestions?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source