Re: SSH/Telnet program to Router/switch

2014-02-27 Thread Rodrick Brown
Sent from my iPhone > On Feb 20, 2014, at 5:59 AM, Ferrous Cranus wrote: > > Τη Τετάρτη, 19 Φεβρουαρίου 2014 10:45:53 π.μ. UTC+2, ο χρήστης Wojciech > Łysiak έγραψε: >>> On 19.02.2014 09:14, Sujith S wrote: >>> >>> Hi, >> >> >>> I am new to programming and python. I am looking for a python

Re: SSH/Telnet program to Router/switch

2014-02-25 Thread Ferrous Cranus
Τη Τετάρτη, 19 Φεβρουαρίου 2014 10:45:53 π.μ. UTC+2, ο χρήστης Wojciech Łysiak έγραψε: > On 19.02.2014 09:14, Sujith S wrote: > > > Hi, > > > > > > I am new to programming and python. I am looking for a python script to do > > ssh/telnet to a network equipment ? I know tcl/perl does this usin

Re: SSH/Telnet program to Router/switch

2014-02-19 Thread William Ray Wing
On Feb 19, 2014, at 3:14 AM, Sujith S wrote: > Hi, > > I am new to programming and python. I am looking for a python script to do > ssh/telnet to a network equipment ? I know tcl/perl does this using > expect/send. > > Do we have expect available in python as well or need to use some other

Re: SSH/Telnet program to Router/switch

2014-02-19 Thread Roy Smith
In article , Roy Smith wrote: > in conjunction with a near command-line driver tool called fab Typo there: "near" should have been "neat". [this is why I love wikis] -- https://mail.python.org/mailman/listinfo/python-list

Re: SSH/Telnet program to Router/switch

2014-02-19 Thread Chris Angelico
On Thu, Feb 20, 2014 at 12:35 AM, Roy Smith wrote: > As far as I know, fabric only works with ssh. If you are forced to use > telnet to talk to legacy equipment, that's another problem. If it's telnet, it's likely to be a pretty simple protocol. All you really need is the socket module, build it

Re: SSH/Telnet program to Router/switch

2014-02-19 Thread Roy Smith
In article , Sujith S wrote: > Hi, > > I am new to programming and python. I am looking for a python script to do > ssh/telnet to a network equipment ? I know tcl/perl does this using > expect/send. > > Do we have expect available in python as well or need to use some other > method ? You

Re: SSH/Telnet program to Router/switch

2014-02-19 Thread Johannes Schneider
On 19.02.2014 09:14, Sujith S wrote: Hi, I am new to programming and python. I am looking for a python script to do ssh/telnet to a network equipment ? I know tcl/perl does this using expect/send. Do we have expect available in python as well or need to use some other method ? Regards Sujith

Re: SSH/Telnet program to Router/switch

2014-02-19 Thread Wojciech Łysiak
On 19.02.2014 09:14, Sujith S wrote: > Hi, > > I am new to programming and python. I am looking for a python script to do > ssh/telnet to a network equipment ? I know tcl/perl does this using > expect/send. > > Do we have expect available in python as well or need to use some other > method ?

Re: SSH/Telnet program to Router/switch

2014-02-19 Thread Chris Angelico
On Wed, Feb 19, 2014 at 7:14 PM, Sujith S wrote: > Hi, > > I am new to programming and python. I am looking for a python script to do > ssh/telnet to a network equipment ? I know tcl/perl does this using > expect/send. > > Do we have expect available in python as well or need to use some other

Re: SSH Connection with Python

2012-10-29 Thread Roy Smith
In article , Gelonida N wrote: > On 10/29/2012 02:10 PM, Roy Smith wrote: > > In article , > > Gelonida N 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

Re: SSH Connection with Python

2012-10-29 Thread Gelonida N
On 10/29/2012 02:10 PM, Roy Smith wrote: In article , Gelonida N 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 of the TCO of using a brain

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 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

Re: SSH Connection with Python

2012-10-29 Thread David Robinow
On Sun, Oct 28, 2012 at 4:09 PM, Gelonida N 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 understand why this is

Re: SSH Connection with Python

2012-10-29 Thread Roy Smith
In article , Gelonida N 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 of the TCO of using a brain-dead operating system. -- http://mail

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. http://www.example-code.com/python/ssh

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 wrote: Hi Folkz, how can i create a SSH-Connection with pyth

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-28 Thread Gelonida N
On 10/28/2012 02:35 AM, Cameron Simpson wrote: On 27Oct2012 14:18, Gelonida N wrote: | On 10/27/2012 02:21 AM, Roy Smith wrote: | > In article , | > Gelonida N wrote: | > | >> Another problem is, that paramiko depends on pycrypto 2.1+ | >> which doesn't exist as binary release for python 2.7

Re: SSH Connection with Python

2012-10-27 Thread Cameron Simpson
On 27Oct2012 14:18, Gelonida N wrote: | On 10/27/2012 02:21 AM, Roy Smith wrote: | > In article , | > Gelonida N 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.

Re: SSH Connection with Python

2012-10-27 Thread Gelonida N
On 10/27/2012 02:21 AM, Roy Smith wrote: In article , Gelonida N 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 "

Re: SSH Connection with Python

2012-10-26 Thread Roy Smith
In article , Gelonida N 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". On the other han

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-25 Thread Rodrick Brown
On Oct 25, 2012, at 6:34 AM, 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 Fabric is the way to go! > -- > http://mail.python.org/mailman/listinfo/python-list -- http:/

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 - Oops

2012-10-25 Thread Peter Pearson
On 25 Oct 2012 16:55:46 GMT, Peter Pearson wrote: > On Thu, 25 Oct 2012 12:16:58 +0200, Schneider 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

Re: SSH Connection with Python

2012-10-25 Thread Peter Pearson
On Thu, 25 Oct 2012 12:16:58 +0200, Schneider 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 or

Re: SSH Connection with Python

2012-10-25 Thread Demian Brecht
On 2012-10-25, at 3:16 AM, Schneider 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. I've heard n

Re: SSH Connection with Python

2012-10-25 Thread Roy Smith
In article , 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 At a low level, you want to look at the paramiko library. Built on top of that, and adding hoards of neat fu

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 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. >> greatz Joha

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 -- http://mail.pyth

Re: ssh browser? where?

2010-09-05 Thread alex goretoy
>>> If we were to use SSH on the web, which is certainly not the point of SSH, >>> we'd still need some kind of certificate authority to make the whole system >>> workable. Yeah, you are correct. I thought about that after having posted these questions. Even though it was SSH there still would be

Re: ssh browser? where?

2010-09-05 Thread Thomas Jollans
On Sunday 05 September 2010, it occurred to alex goretoy to exclaim: > why not ssh browser traffic? why use SSL certificate authorities which > can't be trusted in the first place? > Is SSH not proven to be secure? > > To this day I have not seen ssh module for say Apache web server, why not? > >

Re: SSH utility

2009-07-07 Thread romeoamp
Please look at on : http://www.lag.net/paramiko/ http://www.lag.net/paramiko/ Sample Code: Find Attachment Thanks, S.V.RAJKUMAR, XOU Solutions India Private Limited No. 37, PM Towers, Greams Road, Thousand Lights, Chennai - 6 . Mobile No : +91 - 9940632275. half.italian wrote: > > On

Re: ssh problem using paramiko?

2008-10-09 Thread Steve Holden
Diez B. Roggisch wrote: > Steve Holden wrote: > >> Diez B. Roggisch wrote: >>> sa6113 wrote: >>> I couldn't find any good source for download Openssh on the net? Would you please introduce a URL for download that? >>> http://www.vapor.com/amtelnet/ >>> >>> it supports only SSHv1, but I g

Re: ssh problem using paramiko?

2008-10-09 Thread Diez B. Roggisch
Steve Holden wrote: > Diez B. Roggisch wrote: >> sa6113 wrote: >> >>> I couldn't find any good source for download Openssh on the net? >>> Would you please introduce a URL for download that? >> >> http://www.vapor.com/amtelnet/ >> >> it supports only SSHv1, but I guess that's ok. >> > No, you

Re: ssh problem using paramiko?

2008-10-08 Thread Steve Holden
Diez B. Roggisch wrote: > sa6113 wrote: > >> I couldn't find any good source for download Openssh on the net? >> Would you please introduce a URL for download that? > > http://www.vapor.com/amtelnet/ > > it supports only SSHv1, but I guess that's ok. > No, you really don't want to use SSHv1. Am

Re: ssh problem using paramiko?

2008-10-08 Thread Steve Holden
sa6113 wrote: > I couldn't find any good source for download Openssh on the net? > Would you please introduce a URL for download that? > http://www.openssh.org/ would be my first port of call. regards Steve -- Steve Holden+1 571 484 6266 +1 800 494 3119 Holden Web LLC htt

Re: ssh problem using paramiko?

2008-10-08 Thread Diez B. Roggisch
sa6113 wrote: > > I couldn't find any good source for download Openssh on the net? > Would you please introduce a URL for download that? http://www.vapor.com/amtelnet/ it supports only SSHv1, but I guess that's ok. Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: ssh problem using paramiko?

2008-10-08 Thread sa6113
I couldn't find any good source for download Openssh on the net? Would you please introduce a URL for download that? Steve Holden-5 wrote: > > sa6113 wrote: >> I use this code : >> >> >> import paramiko >> import socket >> >> hostname = "192.168.1.4" >> username = "test" >> port = 22 >> pass

Re: ssh problem using paramiko?

2008-10-07 Thread Steve Holden
sa6113 wrote: > I use this code : > > > import paramiko > import socket > > hostname = "192.168.1.4" > username = "test" > port = 22 > password = ''123456" > > # now connect > try: > sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > sock.connect((hostname, port)) > except Excep

Re: ssh problem using paramiko?

2008-10-07 Thread Johny
On Oct 7, 2:40 pm, sa6113 <[EMAIL PROTECTED]> wrote: > I use this code : > > import paramiko > import socket > > hostname = "192.168.1.4" > username = "test" > port = 22 > password = ''123456" > > # now connect > try: > sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > sock.connect

Re: ssh keepalive

2008-10-02 Thread Gabriel Genellina
En Thu, 02 Oct 2008 05:26:25 -0300, loial <[EMAIL PROTECTED]> escribió: <> Still not enough. From your first post, the error was: 'NoneType' object has no attribute 'exec_command' def command ( self , command ) : """ process requested command through ssh """ print co

Re: ssh keepalive

2008-10-02 Thread loial
<> def command ( self , command ) : """ process requested command through ssh """ print command if not self._connected : return False , "No SSH connection available" try : stdin , stdout , stderr = self._ssh.exec_command( command )

Re: ssh keepalive

2008-10-01 Thread Lie Ryan
On Wed, 01 Oct 2008 10:47:28 +, Marc 'BlackJack' Rintsch wrote: > On Wed, 01 Oct 2008 08:07:43 +, Lie Ryan wrote: > > a = [1, 3, 4, 2] > a = a.sort() > print a >> [None, None, None, None] > > *That* would be really odd. The last line should be just a singel > `None` and not

Re: ssh keepalive

2008-10-01 Thread Marc 'BlackJack' Rintsch
On Wed, 01 Oct 2008 08:07:43 +, Lie Ryan wrote: a = [1, 3, 4, 2] a = a.sort() print a > [None, None, None, None] *That* would be really odd. The last line should be just a singel `None` and not a list. :-) Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mai

Re: ssh keepalive

2008-10-01 Thread Lie Ryan
On Wed, 01 Oct 2008 00:30:59 -0700, loial wrote: > I have a problem with a ssh connection in python > > I get the error > > 'NoneType' object has no attribute 'exec_command' > > I am thinking that maybe the ssh connection is timeing out. > > Since I have no control over the configuration of th

Re: SSH using PEXPECT

2008-09-18 Thread Almar Klein
Hi, Wanting to use pexpect on windows too, I ran into wexpect. http://sage.math.washington.edu/home/goreckc/sage/wexpect/ I haven't given it a try yet. Does anyone have experience with that? Almar 2008/9/13 nntpman68 <[EMAIL PROTECTED]> > Hi, > > [EMAIL PROTECTED] wrote: > >> On Sep 10, 7:01 pm,

Re: SSH using PEXPECT

2008-09-13 Thread nntpman68
Hi, [EMAIL PROTECTED] wrote: On Sep 10, 7:01 pm, Sean DiZazzo <[EMAIL PROTECTED]> wrote: I am using windows and for reason it wont let me use pexpect even tho I have CYGWIN installed I get the following error Traceback (most recent call last): File "new.py", line 1, in import ssh_se

Re: SSH using PEXPECT

2008-09-11 Thread yellowblueyellow
On Sep 10, 7:01 pm, Sean DiZazzo <[EMAIL PROTECTED]> wrote: > On Sep 10, 6:04 pm, [EMAIL PROTECTED] wrote: > > > > > Hey , I need toSSHinto a server .. (10.8.42.38) usingpexpectthe > > username is 'admin' and password is 'abc123' so far i have the > > following code > > > importpexpect > > import s

Re: SSH using PEXPECT

2008-09-10 Thread Sean DiZazzo
On Sep 10, 6:04 pm, [EMAIL PROTECTED] wrote: > Hey , I need to SSH into a server .. (10.8.42.38) using pexpect the > username is 'admin' and password is 'abc123' so far i have the > following code > > import pexpect > import sys > import time > import os > > foo = pexpect.spawn('ssh [EMAIL PROTECTE

Re: SSH utility

2008-08-11 Thread Sean DiZazzo
On Aug 11, 5:17 am, [EMAIL PROTECTED] wrote: > for similar tasks, I use pexpecthttp://pypi.python.org/pypi/pexpect. > > spawning bash process and simulate an interactive session. Here sending ls > command, retrieving results and exiting. In the spawned process ssh or any > other command, is just

RE: SSH utility

2008-08-11 Thread Support Desk
What about pexpect? http://www.noah.org/wiki/Pexpect -Original Message- From: Alan Franzoni [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2008 5:41 AM To: python-list@python.org Subject: Re: SSH utility James Brady was kind enough to say: > Hi all, > I'm looking f

Re: SSH utility

2008-08-11 Thread Michael Mabin
I use pexpect. On Mon, Aug 11, 2008 at 7:22 AM, Jean-Paul Calderone <[EMAIL PROTECTED]>wrote: > On Sun, 10 Aug 2008 21:25:38 -0700 (PDT), James Brady < > [EMAIL PROTECTED]> wrote: > >> Hi all, >> I'm looking for a python library that lets me execute shell commands >> on remote machines. >> >> I'v

Re: SSH utility

2008-08-11 Thread Jean-Paul Calderone
On Sun, 10 Aug 2008 21:25:38 -0700 (PDT), James Brady <[EMAIL PROTECTED]> wrote: Hi all, I'm looking for a python library that lets me execute shell commands on remote machines. I've tried a few SSH utilities so far: paramiko, PySSH and pssh; unfortunately all been unreliable, and repeated quest

Re: SSH utility

2008-08-11 Thread Edwin . Madari
for similar tasks, I use pexpect http://pypi.python.org/pypi/pexpect. spawning bash process and simulate an interactive session. Here sending ls command, retrieving results and exiting. In the spawned process ssh or any other command, is just another command. actual session

Re: SSH utility

2008-08-11 Thread Kris Kennaway
James Brady wrote: Hi all, I'm looking for a python library that lets me execute shell commands on remote machines. I've tried a few SSH utilities so far: paramiko, PySSH and pssh; unfortunately all been unreliable, and repeated questions on their respective mailing lists haven't been answered..

Re: SSH utility

2008-08-11 Thread Alan Franzoni
James Brady was kind enough to say: > Hi all, > I'm looking for a python library that lets me execute shell commands > on remote machines. > > I've tried a few SSH utilities so far: paramiko, PySSH and pssh; > unfortunately all been unreliable, and repeated questions on their > respective mailing

Re: ssh

2008-04-30 Thread Karthik Gurusamy
On Apr 29, 6:29 pm, gert <[EMAIL PROTECTED]> wrote: > Is this the best way to use ssh ? > How can i use ssh keys instead of passwords ? > I dont understand what happens when pid does not equal 0 , where does > the cmd get executed when pid is not 0 ? > How do you close the connection ? > > #http://

Re: ssh

2008-04-30 Thread gert
Eric Wertman wrote: > >from popen2 import Popen3 > >def ssh(host,command) : >''' Wraps ssh commands ''' >ssh_exec = ['/usr/bin/ssh -qnx -F ssh_config', host, command] >cmd = ' '.join(ssh_exec) >output,errors,status = process(cmd) >return output,errors,status > >def process(cmd)

Re: ssh

2008-04-29 Thread Eric Wertman
I don't know about the best way.. I use this function, it works ok for me. I have an ssh key stashed already for my user ID, but you could look at the ssh options and supply one on the command line if you needed to. from popen2 import Popen3 def ssh(host,command) : ''' Wraps ssh commands '''

Re: SSH File Transfer Protocol or SFTP

2006-12-11 Thread Lad
Avell Diroll wrote: > Lad wrote: > > Is there a module in Python available that I can use for uploading > > files via > > SFTP (SSH File Transfer Protocol)? > > Or do you think that FTP protocol for files uploading is OK? > > Thank you for replies > > Lad. > > > > I believe there are many of th

Re: SSH File Transfer Protocol or SFTP

2006-12-11 Thread Avell Diroll
Lad wrote: > Is there a module in Python available that I can use for uploading > files via > SFTP (SSH File Transfer Protocol)? > Or do you think that FTP protocol for files uploading is OK? > Thank you for replies > Lad. > I believe there are many of those, personally i am using paramiko :

Re: SSH File Transfer Protocol or SFTP

2006-12-11 Thread Jan Dries
Lad wrote: > Is there a module in Python available that I can use for uploading > files via > SFTP (SSH File Transfer Protocol)? > Or do you think that FTP protocol for files uploading is OK? > Thank you for replies > Lad. You probably want Paramiko (http://www.lag.net/paramiko/). It provides

Re: SSH File Transfer Protocol or SFTP

2006-12-11 Thread Jean-Paul Calderone
On 11 Dec 2006 07:29:27 -0800, Lad <[EMAIL PROTECTED]> wrote: >Is there a module in Python available that I can use for uploading >files via > SFTP (SSH File Transfer Protocol)? >Or do you think that FTP protocol for files uploading is OK? >Thank you for replies >Lad. > Twisted Conch includes su

Re: SSH, remote login, and command output

2006-03-26 Thread Tim Parkin
Tim Parkin wrote: > Spire 01 wrote: > >>Greetings! >> ... >>Thanks a million! >>Spire > > > > I wrote a small tool to implement cron like functionality over ssh using > twisted (with public/private keys). This was written to scratch a small > itch but also to learn how twisted works with conch

Re: SSH, remote login, and command output

2006-03-26 Thread Tim Parkin
Spire 01 wrote: > Greetings! > > I'm working on a Python program for a small LAN of Linux systems running > Gentoo, and I need a little help figuring out what I need to do it. So > what I'd like to do is, from any given computer, log on to every other > computer, run a certain command (which norm

Re: SSH, remote login, and command output

2006-03-26 Thread Alex Martelli
Spire 01 <[EMAIL PROTECTED]> wrote: > Greetings! > > I'm working on a Python program for a small LAN of Linux systems running > Gentoo, and I need a little help figuring out what I need to do it. So what > I'd like to do is, from any given computer, log on to every other computer, > run a certai

Re: SSH, remote login, and command output

2006-03-26 Thread Rob Williscroft
Spire 01 wrote in news:[EMAIL PROTECTED] in comp.lang.python: > Greetings! > > I'm working on a Python program for a small LAN of Linux systems > running Gentoo, and I need a little help figuring out what I need to > do it. So what I'd like to do is, from any given computer, log on to > every o

Re: SSH, remote login, and command output

2006-03-26 Thread Sybren Stuvel
Spire 01 enlightened us with: > So what I'd like to do is, from any given computer, log on to every > other computer, run a certain command (which normally outputs text > to the terminal), and store the output so I can use the aggregate > statistics later in the program. I'd go for SSH indeed. >

Re: SSH, remote login, and command output

2006-03-26 Thread Spire 01
Greetings! I'm working on a Python program for a small LAN of Linux systems running Gentoo, and I need a little help figuring out what I need to do it. So what I'd like to do is, from any given computer, log on to every other computer, run a certain command (which normally outputs text to the

Re: ssh question

2006-01-14 Thread DarkBlue
should read ssh , (probably should not post anything so late in the evening) Db -- http://mail.python.org/mailman/listinfo/python-list

Re: ssh or other python editor

2005-10-04 Thread jussij
> I'm working/making my python scripts in a windows OS > with putty now. If you need an FTP editor take a look at Zeus: http://www.zeusedit.com/features.html Zeus will do SSH, SSL/TLS and plain old FTP editing, with support for Unix, Windows, VM and MVS FTP servers. Just remember to setup y

Re: ssh or other python editor

2005-10-04 Thread Mike Meyer
"Fredrik Lundh" <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] wrote: >>- I'm a newbie at freeBSD so I think there is , but I don't know where. > Putty isn't doing any syntax coloring; it just draws things in the color > specified > by your editor. If you don't get any colors, it's probably beca

Re: ssh or other python editor

2005-10-04 Thread Graham Fawcett
[EMAIL PROTECTED] wrote: > >So you're using Putty to telenet/ssh into the FreeBSD server, but what > >editor on you using on the FreeBSD server? > > I use pico for that. > That Samba isn't available but I can install it. > > Or are there other editors for FreeBSD that I can run with putty ? I use

Re: ssh or other python editor

2005-10-04 Thread Grant Edwards
On 2005-10-04, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I'm working/making my python scripts in a windows OS with putty now. > But I really want the python text colors and tab spacing like the > python windows IDE but the problem is that I can't find a good program. Jed, Emacs, and Vim all

Re: ssh or other python editor

2005-10-04 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: >- I'm a newbie at freeBSD so I think there is , but I don't know where. I just complained when someone included the entire message thread in their replies, but not including anything at all is pretty annoying too. > And i'm using putty on a windows OS what don't understa

Re: ssh or other python editor

2005-10-04 Thread martijn
- I'm a newbie at freeBSD so I think there is , but I don't know where. And i'm using putty on a windows OS what don't understand the syntax coloring. -- http://mail.python.org/mailman/listinfo/python-list

Re: ssh or other python editor

2005-10-04 Thread Fredrik Lundh
"projecktzero" wrote: > If samba isn't available/set-up, you can try using FTP. You can then > use Crimson Editor which does the syntax coloring and can ftp to/from a > server. are you guys for real? is there any major text editor for Unix that doesn't support Python syntax coloring and indentat

Re: ssh or other python editor

2005-10-04 Thread martijn
googling arround give me a full list of python editors and other stuff http://wiki.python.org/moin/PythonEditors -- http://mail.python.org/mailman/listinfo/python-list

Re: ssh or other python editor

2005-10-04 Thread martijn
>So you're using Putty to telenet/ssh into the FreeBSD server, but what >editor on you using on the FreeBSD server? I use pico for that. That Samba isn't available but I can install it. Or are there other editors for FreeBSD that I can run with putty ? I'm going googling arround again, Thanks.

Re: ssh or other python editor

2005-10-04 Thread projecktzero
[EMAIL PROTECTED] wrote: > H! > > I'm using a windows machine. > And a FreeBSD server where I run my python scripts. > > I'm working/making my python scripts in a windows OS with putty now. > But I really want the python text colors and tab spacing like the > python windows IDE but the problem is t

Re: ssh popen stalling on password redirect output?

2005-07-18 Thread [EMAIL PROTECTED]
Thanks for the help, this gives me a few options. I think the best way to do it is using the public/private key authentication. thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: ssh popen stalling on password redirect output?

2005-07-18 Thread [EMAIL PROTECTED]
Thanks for the help, this gives me a few options. I think the best way to do it is using the public/private key authentication. -- http://mail.python.org/mailman/listinfo/python-list

Re: ssh popen stalling on password redirect output?

2005-07-18 Thread P
for ssh automation I would in order: paramiko twisted keys + popen pexpect -- Pádraig Brady - http://www.pixelbeat.org -- -- http://mail.python.org/mailman/listinfo/python-list

Re: ssh popen stalling on password redirect output?

2005-07-17 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Cantankerous Old Git <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] wrote: >> In general, it is good idea to use expect kind of tool to deal with >> interactive programs like ssh. You may try using pexpect >> (http://pexpect.sourceforge.net). >> > >I tried tha once

Re: ssh popen stalling on password redirect output?

2005-07-16 Thread Cantankerous Old Git
[EMAIL PROTECTED] wrote: > In general, it is good idea to use expect kind of tool to deal with > interactive programs like ssh. You may try using pexpect > (http://pexpect.sourceforge.net). > I tried tha once (on Solaris) and found that ssh could tell that pexpect wasn't a real tty and refused t

Re: ssh popen stalling on password redirect output?

2005-07-15 Thread Jeff Epler
In your ssh configuration, specify something like PreferredAuthentication "hostbased,publickey" this will skip trying to use the methods called keyboard-interactive and password. You can give this flag on the ssh commandline, too. read the ssh(1) and ssh_config(5) manpages for more informatio

Re: ssh popen stalling on password redirect output?

2005-07-15 Thread [EMAIL PROTECTED]
In general, it is good idea to use expect kind of tool to deal with interactive programs like ssh. You may try using pexpect (http://pexpect.sourceforge.net). -- http://mail.python.org/mailman/listinfo/python-list

Re: ssh popen stalling on password redirect output?

2005-07-15 Thread Sybren Stuvel
[EMAIL PROTECTED] enlightened us with: > I have a script that I cycle through nodes connect to them and run > uptime to get some information. I run the script as root so it > doesn't require a password on the rest of the nodes. It does > however barf on the nodes that are having trouble and requi