So, I need to connect to SSH server through proxy socks. I read paramiko and twisted.conch docs, but didn`t found proxy socks support there.
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
Paraproxy (a Paramiko addon for SSH2 ProxyCommands) looks like it can do it. There's no documentation online but in downloading the source and inspecting the
README
file, I found this:Give that a shot!
This socket-wrapper allows you to use static ssh-tunnels. I found a common solution for my problem:
SSHClient
classSSHClient
with your own classconnect()
method: Instead of using a standard socket object we pass to it a fixed proxied socket from the python packagesockipy