How to connect to a database through a Paramiko Tunnel (or similar package)

后端 未结 2 1364
予麋鹿
予麋鹿 2020-12-18 17:38

I am having serious issues setting up a proper tunnel in paramiko to enable a database connection. I have reviewed the example \'forward.py\', but am not understanding how

2条回答
  •  [愿得一人]
    2020-12-18 17:59

    I had same serious issues getting paramiko to work too but ended up doing it with another library (sshtunnel) that wraps and simplifies paramiko's tunneling.

    You can check my answer in another similar question with some sample code to use it.

提交回复
热议问题