Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #32112 > unrolled thread

SSH Connection with Python

Started bySchneider <js@globe.de>
First post2012-10-25 12:16 +0200
Last post2012-10-29 06:03 -0700
Articles 6 — 4 participants

Back to article view | Back to comp.lang.python


Contents

  SSH Connection with Python Schneider <js@globe.de> - 2012-10-25 12:16 +0200
    Re: SSH Connection with Python Roy Smith <roy@panix.com> - 2012-10-25 08:18 -0400
    Re: SSH Connection with Python Peter Pearson <ppearson@nowhere.invalid> - 2012-10-25 16:55 +0000
      Re: SSH Connection with Python - Oops Peter Pearson <ppearson@nowhere.invalid> - 2012-10-25 23:08 +0000
    Re: SSH Connection with Python Christian <mining.facts@googlemail.com> - 2012-10-29 06:03 -0700
    Re: SSH Connection with Python Christian <mining.facts@googlemail.com> - 2012-10-29 06:03 -0700

#32112 — SSH Connection with Python

FromSchneider <js@globe.de>
Date2012-10-25 12:16 +0200
SubjectSSH Connection with Python
Message-ID<mailman.2834.1351161105.27098.python-list@python.org>
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

[toc] | [next] | [standalone]


#32120

FromRoy Smith <roy@panix.com>
Date2012-10-25 08:18 -0400
Message-ID<roy-77F377.08184725102012@news.panix.com>
In reply to#32112
In article <mailman.2834.1351161105.27098.python-list@python.org>,
 Schneider <js@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 library.  Built on top 
of that, and adding hoards of neat functionality, is fabric.  One of 
these is likely to be what you're looking for.

http://www.lag.net/paramiko/

https://github.com/fabric/fabric

[toc] | [prev] | [next] | [standalone]


#32149

FromPeter Pearson <ppearson@nowhere.invalid>
Date2012-10-25 16:55 +0000
Message-ID<aet98iFpnihU1@mid.individual.net>
In reply to#32112
On Thu, 25 Oct 2012 12:16:58 +0200, Schneider <js@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 end.  Its organization is "event-driven",
which you may or may not find convenient.

-- 
To email me, substitute nowhere->spamcop, invalid->net.

[toc] | [prev] | [next] | [standalone]


#32172 — Re: SSH Connection with Python - Oops

FromPeter Pearson <ppearson@nowhere.invalid>
Date2012-10-25 23:08 +0000
SubjectRe: SSH Connection with Python - Oops
Message-ID<aetv3bFh28U1@mid.individual.net>
In reply to#32149
On 25 Oct 2012 16:55:46 GMT, Peter Pearson <ppearson@nowhere.invalid> wrote:
> On Thu, 25 Oct 2012 12:16:58 +0200, Schneider <js@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 end.  Its organization is "event-driven",
> which you may or may not find convenient.

Oops!  The question was about SSH, and I was blathering about SSL.
Sorry.

-- 
To email me, substitute nowhere->spamcop, invalid->net.

[toc] | [prev] | [next] | [standalone]


#32368

FromChristian <mining.facts@googlemail.com>
Date2012-10-29 06:03 -0700
Message-ID<1b91a5ba-69ea-4cd4-97fe-420fc7adf2ad@googlegroups.com>
In reply to#32112
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.
http://www.example-code.com/python/ssh_exec.asp
Don't know if it is worth the money, never used it.

Christian

[toc] | [prev] | [next] | [standalone]


#32369

FromChristian <mining.facts@googlemail.com>
Date2012-10-29 06:03 -0700
Message-ID<mailman.3008.1351515829.27098.python-list@python.org>
In reply to#32112
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.
http://www.example-code.com/python/ssh_exec.asp
Don't know if it is worth the money, never used it.

Christian

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web