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


Groups > comp.lang.python > #32318

Re: SSH Connection with Python

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; '(at': 0.03; 'subject:Python': 0.05; 'binary': 0.05; 'installed.': 0.05; 'executable': 0.07; 'python': 0.09; 'command.': 0.09; 'linux.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; '2.7': 0.13; 'library': 0.15; '.dll': 0.16; '2.7.3': 0.16; 'dlls': 0.16; 'executables': 0.16; 'libc': 0.16; 'reasonably': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'roy': 0.16; 'simpson': 0.16; 'ssh': 0.16; 'subprocess': 0.16; 'wrote:': 0.17; 'thanks,': 0.18; 'windows': 0.19; 'module': 0.19; 'versions': 0.20; 'followed': 0.20; 'packaging': 0.20; 'either.': 0.22; 'precise': 0.22; 'stick': 0.22; "i'd": 0.22; "python's": 0.23; 'idea': 0.24; 'linux': 0.24; 'least': 0.25; 'header:In- Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'ago': 0.27; 'am,': 0.27; 'newer': 0.27; "doesn't": 0.28; 'header:X-Complaints- To:1': 0.28; 'installed,': 0.29; 'invoke': 0.29; 'mid': 0.29; 'probably': 0.29; "i'm": 0.29; 'install': 0.29; 'running': 0.32; 'could': 0.32; 'problem': 0.33; 'to:addr:python-list': 0.33; 'another': 0.33; "can't": 0.34; 'exist': 0.35; 'path': 0.35; 'something': 0.35; 'received:org': 0.36; 'really': 0.36; 'but': 0.36; 'wanted': 0.36; 'depends': 0.36; 'subject:with': 0.36; 'should': 0.36; 'being': 0.37; 'why': 0.37; 'subject:: ': 0.38; 'files': 0.38; 'some': 0.38; 'sure': 0.38; 'to:addr:python.org': 0.39; 'release': 0.39; 'easily': 0.39; 'header:Received:5': 0.40; 'your': 0.60; 'back': 0.62; 'box.': 0.65; 'talking': 0.66; 'smith': 0.71; 'article': 0.78; 'kit': 0.78; 'feedback,': 0.84; 'gelonida': 0.84; 'myself)': 0.84; 'pcs': 0.84; 'pycrypto': 0.84; 'recompile': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Gelonida N <gelonida@gmail.com>
Subject Re: SSH Connection with Python
Date Sun, 28 Oct 2012 21:09:18 +0100
References <k6gje2$cpn$1@ger.gmane.org> <20121028003523.GA26034@cskk.homeip.net>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host unicorn.dungeon.de
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121011 Thunderbird/16.0.1
In-Reply-To <20121028003523.GA26034@cskk.homeip.net>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2976.1351454972.27098.python-list@python.org> (permalink)
Lines 49
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1351454972 news.xs4all.nl 6890 [2001:888:2000:d::a6]:43482
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:32318

Show key headers only | View raw


On 10/28/2012 02:35 AM, Cameron Simpson wrote:
> On 27Oct2012 14:18, Gelonida N <gelonida@gmail.com> wrote:
> | On 10/27/2012 02:21 AM, Roy Smith wrote:
> | > In article <mailman.2915.1351294793.27098.python-list@python.org>,
> | >   Gelonida N <gelonida@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 reasonably sure all I did was "pip install paramiko".
> |
> | Apologies.  I failed to mention, that I was talking about Windows not Linux.
> |
> | I use Python for applications, that should work under Linux and under
> | Windows.
> |
> | > But, keep in mind that fabric depends on paramiko.  If you can't get
> | > paramiko installed, you probably can't get fabric either.
> | >
> | Thanks, that's good to know, so I don't have to bother looking at farbic
> | (at least not as solution on windows python 2.7 without having to try to
> | recompile pycrypto myself)
>
> Many years ago we ran an ssh executable on Windows; it was a tiny
> standalone kit consisting, IIRC, of the Cygwin libc and ssh. Or you
> could just install Cygwin...
>
> That would let you use Python's subprocess module to invoke ssh and
> dispatch your command.
>
On all my work PCs cygwin is installed.

However when packaging something with py2exe I'd really prefer to not 
have to install additional .exe / .dll files just for the ssh client.
This is why I like the idea of Paramiko. which requires the crypto .dll, 
but that's it.

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.

For the time being I stick with paramiko as I'm still on py2.6, but I 
wanted to have some feedback, whether this path can easily be followed 
in the mid term future or whther I ahd to fall back to a minimalist set
of ssh executables / dlls and a subprocess wrapper.


Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: SSH Connection with Python Gelonida N <gelonida@gmail.com> - 2012-10-28 21:09 +0100

csiph-web