[Twisted-Python] database connection through ssh tunnel using twisted
Yves Glodt
yves at sita.lu
Wed Aug 31 07:45:23 MDT 2005
Yves Glodt wrote:
> 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)...
Sorry for selfreplying, but I guess I need the conch.ssh.forwarding module:
http://twistedmatrix.com/documents/current/api/twisted.conch.ssh.forwarding.html
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
> best regards and thanks in advance,
> Yves
>
>
>
> [1]:
> http://kinterbasdb.sourceforge.net/dist_docs/usage.html#tutorial_connect
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
> .
>
More information about the Twisted-Python
mailing list