[Twisted-Python] database connection through ssh tunnel using twisted
![](https://secure.gravatar.com/avatar/86a01794f00faec4921f8d6a73dadc9b.jpg?s=120&d=mm&r=g)
Hello, (I am new to twisted, so please excuse me if my question is not appropriate...) I am using the python module kinterbasdb [1] for connecting to a Firebird DB, and I wonder if it's possible, using twisted, to pass this connection through a ssh tunnel, which should be created on the fly by twisted (without running a /usr/bin/ssh commandline)... best regards and thanks in advance, Yves [1]: http://kinterbasdb.sourceforge.net/dist_docs/usage.html#tutorial_connect
![](https://secure.gravatar.com/avatar/86a01794f00faec4921f8d6a73dadc9b.jpg?s=120&d=mm&r=g)
Yves Glodt wrote:
Sorry for selfreplying, but I guess I need the conch.ssh.forwarding module: http://twistedmatrix.com/documents/current/api/twisted.conch.ssh.forwarding.... The doc is a little spartanic, does anybody have an example around...? I need a forwarding from box_a:3051 <-ssh-over-internet-> box_b:3050 box_a is my local box where my python daemon is running. This daemon connects from time to time to box_b over the internet. Regards, Yves
![](https://secure.gravatar.com/avatar/86a01794f00faec4921f8d6a73dadc9b.jpg?s=120&d=mm&r=g)
Yves Glodt wrote:
Sorry for selfreplying, but I guess I need the conch.ssh.forwarding module: http://twistedmatrix.com/documents/current/api/twisted.conch.ssh.forwarding.... The doc is a little spartanic, does anybody have an example around...? I need a forwarding from box_a:3051 <-ssh-over-internet-> box_b:3050 box_a is my local box where my python daemon is running. This daemon connects from time to time to box_b over the internet. Regards, Yves
participants (1)
-
Yves Glodt