Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #52236
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2013-08-08 17:46 -0700 |
| References | <092fdbf5-1db3-4ea5-82ee-4b02cec80dc6@googlegroups.com> <mailman.377.1376002908.1251.python-list@python.org> |
| Message-ID | <9c89bff2-bcf0-4e08-a714-da51e137faae@googlegroups.com> (permalink) |
| Subject | Re: Python 3 and SSH Tunnel |
| From | "D. Xenakis" <gouzounakis@hotmail.com> |
> > HOWTO anyone? > > > > > > What im trying to succeed here is create one SSH tunnel, so that i can connect from a python script running on my pc, to a remote MySQL database running on my Host and id like to stick with Python 3.3 . > > > > > > I contacted my host and he informed me that this is the only way. > > > > > > I tried pycrypto + paramiko but from what i have noticed, paramiko is not Python 3.3 ready. > > > > I'm not sure what exactly is going on here, but why not simply > > establish a tunnel using ssh(1) and then invoke your Python script > > separately? You simply point your script at a database on localhost, > > after establishing a tunnel from local 3306 to remote localhost:3306. > > No need to play with Python crypto. > > > > Alternatively, can you use PostgreSQL instead? :) > > > > ChrisA Yes you are right. I've played with putty to achieve this but to be honest i'd like something more efficient. Opening putty everytime and making all the connection settings etc, and then running the programm, is kinda messy. Id like this to be done in an automatic way from the program so that things roll easy. I thought maybe i should find a way how to call and run a batch file from inside my python program or a powershell command, but i do not know even if that could work for the ssh tunneling. any ideas?
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Python 3 and SSH Tunnel "D. Xenakis" <gouzounakis@hotmail.com> - 2013-08-08 12:30 -0700
Re: Python 3 and SSH Tunnel Skip Montanaro <skip@pobox.com> - 2013-08-08 15:03 -0500
Re: Python 3 and SSH Tunnel Chris Angelico <rosuav@gmail.com> - 2013-08-08 23:54 +0100
Re: Python 3 and SSH Tunnel "D. Xenakis" <gouzounakis@hotmail.com> - 2013-08-08 17:46 -0700
Re: Python 3 and SSH Tunnel Chris Angelico <rosuav@gmail.com> - 2013-08-09 01:56 +0100
Re: Python 3 and SSH Tunnel Bernd Waterkamp <Bernd-Waterkamp@web.de> - 2013-08-09 18:40 +0200
Re: Python 3 and SSH Tunnel "D. Xenakis" <gouzounakis@hotmail.com> - 2013-08-08 17:50 -0700
Re: Python 3 and SSH Tunnel Chris Angelico <rosuav@gmail.com> - 2013-08-09 01:57 +0100
Re: Python 3 and SSH Tunnel "D. Xenakis" <gouzounakis@hotmail.com> - 2013-08-10 03:39 -0700
Re: Python 3 and SSH Tunnel Veritatem Ignotam <veritatem.ignotam@gmail.com> - 2013-08-10 14:29 -0400
Re: Python 3 and SSH Tunnel Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-08-10 16:16 -0400
csiph-web