在Python中模拟SSH的SOCKS代理隧道
我曾经使用 SSH 服务器和 putty 在 Windows 客户端和 Linux 服务器之间创建 SOCKS 连接。但是,客户端和服务器之间的防火墙现在能够识别 SSH 数据包并丢弃它们。
我想知道是否可以使用 python 模拟 SSH 隧道的这种行为?有什么图书馆或读物的推荐吗?
提前致谢。
I used to create a SOCKS connection between a windows client and linux server using SSH server and putty. However, the firewall between the client and server is now able to identify SSH packets and drop them.
I was wondering if I can emulate such behavior of SSH tunnels using python? Any recommendations on libraries or readings?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,是的,你可以。选择你的毒药。
Yes, yes you can. Pick your poison.
您可以考虑使用 paramiko 进行 SSH。这是一个很好的链接 ssh-programming-with-paramiko
您还可以尝试使用 paramiko 的 ssh 模块。
You can consider using paramiko for your SSH. Here is a nice link ssh-programming-with-paramiko
You can also try this ssh module which uses paramiko.