How to ssh over HTTP proxy in Python Paramiko?

后端 未结 2 1207
悲哀的现实
悲哀的现实 2020-12-18 13:43

I am adapting a Python script to be OS independent and run on Windows. I have changed its ssh system calls to calls to paramiko functions. I am stuck with the issue of http

2条回答
  •  一向
    一向 (楼主)
    2020-12-18 14:15

    There's paraproxy, which implements proxy support for Paramiko.

    The post you linked to suggets that Paramiko can operate over an arbitrary socket, but that doesn't appear to be the case. In fact, paraproxy works by completing replacing specific methods inside paramiko, since the existing code simply calls socket.socket() to obtain a socket and does not offer any way of hooking in a proxy.

提交回复
热议问题