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
Τη Τετάρτη, 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
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
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
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
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
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
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 ?
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
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
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
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
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
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
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
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
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:
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
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.
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 "
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
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/
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:/
> 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
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
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
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
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
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
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
>>> 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
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?
>
>
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
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
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
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
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
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
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
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
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
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
<>
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 )
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
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
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
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,
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
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
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
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
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
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
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
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
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..
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
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://
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)
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 '''
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
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 :
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
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
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
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
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
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
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.
>
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
should read ssh , (probably should not post anything so late in the evening)
Db
--
http://mail.python.org/mailman/listinfo/python-list
> 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
"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
[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
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
[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
- 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
"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
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
>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.
[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
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
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
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
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
[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
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
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
[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
89 matches
Mail list logo