pythondjangossh-tunnel

How to open an SSH tunnel using python?


I am trying to connect to a remote mysql database using django.
The documentation specifies that it is required to open an SSH tunnel first to connect to the database.
Is there a python library that can open an SSH tunnel whenever certain settings are set?


Solution

  • You could try paramiko's forward functionality. For a paramiko overview, see here.