Re: SSH Connection with Python

2012-10-29 Thread Schneider
thank you guys for the huge list of answers, In my setting I have to access some routers and firewall from a linux-client. I think I'll try Fabric. On 26.10.2012 06:20, Rodrick Brown wrote: On Oct 25, 2012, at 6:34 AM, Schneider j...@globe.de wrote: Hi Folkz, how can i create a

Re: SSH Connection with Python

2012-10-29 Thread Christian
Am Donnerstag, 25. Oktober 2012 12:31:46 UTC+2 schrieb Schneider: Hi Folkz, how can i create a SSH-Connection with python? I have to send some commands to the remote host and parse their answers. greatz Johannes There is a module in chilkat.

Re: SSH Connection with Python

2012-10-29 Thread Roy Smith
In article mailman.2977.1351455364.27098.python-l...@python.org, Gelonida N gelon...@gmail.com wrote: The sh module looks intersting, but it's not supported for Windows platforms. The X module looks interesting but it's not supported for Windows is true for many values of X. It's all part

Re: SSH Connection with Python

2012-10-29 Thread David Robinow
On Sun, Oct 28, 2012 at 4:09 PM, Gelonida N gelon...@gmail.com wrote: The only thing I'm concerned about paramiko is, that I don't see any activity on the paramiko site and that one library it depends on is not available is windows binary package for newer versions of python. I don't

Re: SSH Connection with Python

2012-10-29 Thread Gelonida N
On 10/29/2012 04:18 PM, David Robinow wrote: On Sun, Oct 28, 2012 at 4:09 PM, Gelonida N gelon...@gmail.com wrote: The only thing I'm concerned about paramiko is, that I don't see any activity on the paramiko site and that one library it depends on is not available is windows binary package for

Re: SSH Connection with Python

2012-10-29 Thread Gelonida N
On 10/29/2012 02:10 PM, Roy Smith wrote: In article mailman.2977.1351455364.27098.python-l...@python.org, Gelonida N gelon...@gmail.com wrote: The sh module looks intersting, but it's not supported for Windows platforms. The X module looks interesting but it's not supported for Windows is

Re: SSH Connection with Python

2012-10-29 Thread Roy Smith
In article mailman.3048.1351547492.27098.python-l...@python.org, Gelonida N gelon...@gmail.com wrote: On 10/29/2012 02:10 PM, Roy Smith wrote: In article mailman.2977.1351455364.27098.python-l...@python.org, Gelonida N gelon...@gmail.com wrote: The sh module looks intersting, but it's

Re: SSH Connection with Python

2012-10-28 Thread Gelonida N
On 10/28/2012 02:35 AM, Cameron Simpson wrote: On 27Oct2012 14:18, Gelonida N gelon...@gmail.com wrote: | On 10/27/2012 02:21 AM, Roy Smith wrote: | In article mailman.2915.1351294793.27098.python-l...@python.org, |Gelonida N gelon...@gmail.com wrote: | | Another problem is, that paramiko

Re: SSH Connection with Python

2012-10-28 Thread Gelonida N
On 10/26/2012 05:22 AM, Jason Friedman wrote: how can i create a SSH-Connection with python? I have to send some commands to the remote host and parse their answers. Consider also the sh module: http://amoffat.github.com/sh/tutorials/2-interacting_with_processes.html. Just a minor comment:

Re: SSH Connection with Python

2012-10-27 Thread Gelonida N
On 10/27/2012 02:21 AM, Roy Smith wrote: In article mailman.2915.1351294793.27098.python-l...@python.org, Gelonida N gelon...@gmail.com wrote: Another problem is, that paramiko depends on pycrypto 2.1+ which doesn't exist as binary release for python 2.7 I'm running paramiko-1.7.6 with

Re: SSH Connection with Python

2012-10-27 Thread Cameron Simpson
On 27Oct2012 14:18, Gelonida N gelon...@gmail.com wrote: | On 10/27/2012 02:21 AM, Roy Smith wrote: | In article mailman.2915.1351294793.27098.python-l...@python.org, |Gelonida N gelon...@gmail.com wrote: | | Another problem is, that paramiko depends on pycrypto 2.1+ | which doesn't exist

Re: SSH Connection with Python

2012-10-26 Thread Gelonida N
On 10/25/2012 12:47 PM, Kamlesh Mutha wrote: You can use paramiko module. Very easy to use. I also use paramiko for a small script. However I'm a little hesitant to use paramik for new code. The web page says: last updated 21-May-2011 and the github url http://github.com/robey/paramiko/

Re: SSH Connection with Python

2012-10-26 Thread Roy Smith
In article mailman.2915.1351294793.27098.python-l...@python.org, Gelonida N gelon...@gmail.com wrote: Another problem is, that paramiko depends on pycrypto 2.1+ which doesn't exist as binary release for python 2.7 I'm running paramiko-1.7.6 with python 2.7.3 on my Ubunto Precise box. I'm

Re: SSH Connection with Python

2012-10-25 Thread Laszlo Nagy
On 2012-10-25 12:16, Schneider wrote: Hi Folkz, how can i create a SSH-Connection with python? I have to send some commands to the remote host and parse their answers. greatz Johannes http://www.lag.net/paramiko/ Another solution would be to use subprocess and/or pexpect --

Re: SSH Connection with Python

2012-10-25 Thread Kamlesh Mutha
You can use paramiko module. Very easy to use. On Thu, Oct 25, 2012 at 4:04 PM, Laszlo Nagy gand...@shopzeus.com wrote: On 2012-10-25 12:16, Schneider wrote: Hi Folkz, how can i create a SSH-Connection with python? I have to send some commands to the remote host and parse their answers.

Re: SSH Connection with Python

2012-10-25 Thread Roy Smith
In article mailman.2834.1351161105.27098.python-l...@python.org, Schneider j...@globe.de wrote: Hi Folkz, how can i create a SSH-Connection with python? I have to send some commands to the remote host and parse their answers. greatz Johannes At a low level, you want to look at the paramiko

Re: SSH Connection with Python

2012-10-25 Thread Demian Brecht
On 2012-10-25, at 3:16 AM, Schneider j...@globe.de wrote: how can i create a SSH-Connection with python? I have to send some commands to the remote host and parse their answers. I have yet to use it, but Fabric (http://docs.fabfile.org/en/1.4.3/) should have everything you're looking for.

Re: SSH Connection with Python

2012-10-25 Thread Peter Pearson
On Thu, 25 Oct 2012 12:16:58 +0200, Schneider j...@globe.de wrote: how can i create a SSH-Connection with python? I have to send some commands to the remote host and parse their answers. greatz Johannes I've been using Twisted (twistedmatrix.com). It is especially convenient for the server

Re: SSH Connection with Python - Oops

2012-10-25 Thread Peter Pearson
On 25 Oct 2012 16:55:46 GMT, Peter Pearson ppearson@nowhere.invalid wrote: On Thu, 25 Oct 2012 12:16:58 +0200, Schneider j...@globe.de wrote: how can i create a SSH-Connection with python? I have to send some commands to the remote host and parse their answers. greatz Johannes I've been

Re: SSH Connection with Python

2012-10-25 Thread Jason Friedman
how can i create a SSH-Connection with python? I have to send some commands to the remote host and parse their answers. Consider also the sh module: http://amoffat.github.com/sh/tutorials/2-interacting_with_processes.html. -- http://mail.python.org/mailman/listinfo/python-list

Re: SSH Connection with Python

2012-10-25 Thread Rodrick Brown
On Oct 25, 2012, at 6:34 AM, Schneider j...@globe.de wrote: Hi Folkz, how can i create a SSH-Connection with python? I have to send some commands to the remote host and parse their answers. greatz Johannes Fabric is the way to go! -- http://mail.python.org/mailman/listinfo/python-list --