Can't trap paramiko runtime trace-back error

2024-05-22 Thread Vinode Singh Ujlain via Python-list
When running the code below , I get error as enumerated below. Why am I not able to trap this paramiko runtime traceback in try-except block ? Exception (client): Error reading SSH protocol banner Traceback (most recent call last):   File "/home/uzi/.local/lib/python3.8/site-packages/par

Re: ModuleNotFoundError: No module named 'Paramiko'

2024-04-09 Thread Wenyong Wei via Python-list
hi Sravan, Thanks for your response, checked and found there is only one python in my PC. From: Sravan Kumar Chitikesi Sent: Tuesday, 9 April 2024 3:42 AM To: Wenyong Wei Cc: python-list@python.org Subject: Re: ModuleNotFoundError: No module named 'Par

Re: ModuleNotFoundError: No module named 'Paramiko'

2024-04-09 Thread Mats Wichmann via Python-list
On 4/7/24 19:31, Wenyong Wei via Python-list wrote: Dear Sir/Madam, Recently I encounter a problem that I can't import paramiko in my computer. My PC running on window 10 64 bits. I have investigate this issue via internet, there are a lot of solutions for this issue, after trying mo

Re: ModuleNotFoundError: No module named 'Paramiko'

2024-04-08 Thread Thomas Passin via Python-list
e explorer address bar.) Then enter 'python.exe -mpip install paramiko'. This way you can be sure that you're not running a pip.exe that belongs to another Python interpreter. This is not quite right. The best name of the Python executable may or may not be "python.exe". The c

Re: ModuleNotFoundError: No module named 'Paramiko'

2024-04-08 Thread Keith Thompson via Python-list
Then enter 'python.exe -mpip install paramiko'. >> This way you can be sure that you're not running a pip.exe that >> belongs to another Python interpreter. > > This is not quite right. The best name of the Python executable may or > may not be "python.exe".

Re: ModuleNotFoundError: No module named 'Paramiko'

2024-04-08 Thread Thomas Passin via Python-list
On 4/8/2024 2:01 PM, Dietmar Schwertberger via Python-list wrote: To be sure, you can always go the the directory of the Python interpreter and open a cmd window there. (By entering 'cmd' into the explorer address bar.) Then enter 'python.exe -mpip install paramiko'. This

Re: ModuleNotFoundError: No module named 'Paramiko'

2024-04-08 Thread Dietmar Schwertberger via Python-list
To be sure, you can always go the the directory of the Python interpreter and open a cmd window there. (By entering 'cmd' into the explorer address bar.) Then enter 'python.exe -mpip install paramiko'. This way you can be sure that you're not running a pip.exe that b

Re: ModuleNotFoundError: No module named 'Paramiko'

2024-04-08 Thread Sravan Kumar Chitikesi via Python-list
t; > Recently I encounter a problem that I can't import paramiko in my > computer. My PC running on window 10 64 bits. I have investigate this issue > via internet, there are a lot of solutions for this issue, after trying > most of the steps, I still can't run this mod

ModuleNotFoundError: No module named 'Paramiko'

2024-04-08 Thread Wenyong Wei via Python-list
Dear Sir/Madam, Recently I encounter a problem that I can't import paramiko in my computer. My PC running on window 10 64 bits. I have investigate this issue via internet, there are a lot of solutions for this issue, after trying most of the steps, I still can't run this module,

how to connect linux aws ec2 instance to windows local machine at my home using paramiko

2023-11-27 Thread Kashish Naqvi via Python-list
I have a north viriginia ec2 linux instance and a windows machine at my home, how do I connec tthem? import paramiko import time def run_scripts(): # Set your local machine's SSH details local_machine_ip = ' ' username = 'justk' private_key_path = &#x

Using Paramiko to submit job on SGE

2022-10-17 Thread Arshi Syed
Hi All, I am trying to run a script-1 on a Linux server using a Paramiko ssh connection and this script-1 calls script-2 which ultimately submits a job using a qsub command, job starts on SGE and I can see it through qstat but everything stops as soon as the script-1 stops. It seems the SSH

Re: Paramiko installation issue

2021-06-29 Thread MRAB
On 2021-06-29 15:01, Sourav Bose wrote: Hello, I was using Python 3.8 32 bit ,but while trying to install the paramiko there is some wheel issue I'm facing. definitely it is due to version mismatching of the python and the paramiko. I have uninstalled 3.8 Could you please help me by prov

Paramiko installation issue

2021-06-29 Thread Sourav Bose
Hello, I was using Python 3.8 32 bit ,but while trying to install the paramiko there is some wheel issue I'm facing. definitely it is due to version mismatching of the python and the paramiko. I have uninstalled 3.8 Could you please help me by providing the exact paramiko files for 3.8 t

Re: pysftp / paramiko problem

2019-06-14 Thread Robin Becker
... I tried an experiment with a remote server that I control and pysftp works perfectly there. A difference that I know of is that this server is using ubuntu 18.04 and we don't use passwords, but a private_key. Also this server is using the openssh internal sftp. I believe the failing se

Re: pysftp / paramiko problem

2019-06-14 Thread Robin Becker
On 13/06/2019 18:23, MRAB wrote: . What does: sftp.normalize('.') return? It returns '/'. sftp.chdir('') and that also fails in paramiko as it seems to use CMD_REALPATH to do that. File "tsftp.py", line 7, in main print(sftp

Re: pysftp / paramiko problem

2019-06-13 Thread MRAB
ile "tsftp.py", line 9, in main() File "tsftp.py", line 6, in main print(sftp.normalize('')) File "/home/rptlab/tmp/tpy3/lib/python3.6/site-packages/pysftp/__init__.py", line 640, in normalize return self._sftp.normalize(remotepath) File &quo

Re: pysftp / paramiko problem

2019-06-13 Thread Robin Becker
File "tsftp.py", line 6, in main print(sftp.normalize('')) File "/home/rptlab/tmp/tpy3/lib/python3.6/site-packages/pysftp/__init__.py", line 640, in normalize return self._sftp.normalize(remotepath) File "/home/rptlab/tmp/tpy3/lib/python3.6/site

Re: pysftp / paramiko problem

2019-06-12 Thread dieter
Robin Becker writes: > On 12/06/2019 05:59, dieter wrote: >> Robin Becker writes: >>> I am trying to convert older code that uses ftplib as the endpoint has >>> switched to sftp only. > ... > Well with real sftp I can cd to that path so if it is a symlink it goes > somewhere. > > With pysftp I

Re: pysftp / paramiko problem

2019-06-12 Thread Robin Becker
On 12/06/2019 05:59, dieter wrote: Robin Becker writes: I am trying to convert older code that uses ftplib as the endpoint has switched to sftp only. I am using the pysftp wrapper around paramiko. The following script fails def main(): import pysftp with pysftp.Connection

Re: pysftp / paramiko problem

2019-06-11 Thread dieter
Robin Becker writes: > I am trying to convert older code that uses ftplib as the endpoint has > switched to sftp only. > > I am using the pysftp wrapper around paramiko. > > The following script fails > > def main(): > import pysftp > with pysftp.Connection(

pysftp / paramiko problem

2019-06-11 Thread Robin Becker
I am trying to convert older code that uses ftplib as the endpoint has switched to sftp only. I am using the pysftp wrapper around paramiko. The following script fails def main(): import pysftp with pysftp.Connection('ftp.remote.com', username='me', passwor

3rd command never executed in remote machine using paramiko

2016-10-25 Thread mandalmanas786
I have written below code to run 3 command in remote server interactively But when i checked 3rd command never executed and code stuck here is my code def execute(): ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh.connect('ipaddress',username='user', passwo

Re: how to set paramiko to use ssh version 1?

2016-09-09 Thread Lawrence D’Oliveiro
On Thursday, September 1, 2016 at 3:26:26 PM UTC+12, meInvent bbird wrote: > how to set paramiko to use ssh version 1? Be polite, but firm. Tell it “paramiko, this is ssh version 1, use it”. Then, when it responds “but SSHv1 is an obsolete stinking pile of crap that nobody in their right m

how to set paramiko to use ssh version 1?

2016-09-01 Thread meInvent bbird
how to set paramiko to use ssh version 1? -- https://mail.python.org/mailman/listinfo/python-list

Re: Paramiko Help. Execute command to Interactive Shell which is opened by SSHClient()

2016-02-29 Thread reachparagm
at 12:20:25 AM UTC-7, sagar varule wrote: > Hi All, > > Im using Paramiko for my SSH automation. Im using method that is shown in > demo_simple.py example which comes with Paramiko. Below is code from > demo_simple.py. > > As you can make out, below code opens SSH connection

paramiko transport and invoke_shell

2016-01-20 Thread greg . szewski
programing skills are realy low . So maybe You will help def method executeShell method for below code . import paramiko as ssh class SSHTool(): def __init__(self, host, user, auth, via=None, via_user=None, via_auth=None): if via: t0 = ssh.Transport(via) t0.start_client() t0.auth_password(via_user

Re: Paramiko SSHClient.connect() problem

2015-10-27 Thread Chris Angelico
.0.191 > ... > > Would I have been able to solve the problem in my paramiko calls by suitable > changes to ssh.connect()? I don't see anything obvious, though perhaps I > could give a non-default "sock" argument? I've no idea. At this point, it's sounding li

Re: Paramiko SSHClient.connect() problem

2015-10-27 Thread Skip Montanaro
, the box does seem to support IPv6: % ssh ::1 Warning: Permanently added '::1' (ECDSA) to the list of known hosts. Last login: Tue Oct 27 07:31:10 2015 from 10.100.0.191 ... Would I have been able to solve the problem in my paramiko calls by suitable changes to ssh.connect()? I do

Re: Paramiko SSHClient.connect() problem

2015-10-27 Thread Chris Angelico
On Wed, Oct 28, 2015 at 12:23 AM, Skip Montanaro wrote: > Finally, there is also a "localhost" record in known_hosts. Connecting to > that fails with a different exception: > >>>> ssh = paramiko.SSHClient() >>>> conn = ssh.connect("localhost")

Re: Paramiko SSHClient.connect() problem

2015-10-27 Thread Skip Montanaro
On Tue, Oct 27, 2015 at 8:23 AM, Skip Montanaro wrote: > >>> ssh = paramiko.SSHClient() > >>> conn = ssh.connect("firefly") > SSHException Server 'firefly' not found in known_hosts > [||1] [paramiko/client.py|connect|288] > [paramiko/client.py

Paramiko SSHClient.connect() problem

2015-10-27 Thread Skip Montanaro
I'm trying to use paramiko (for the first time) to connect to both the localhost and a remote host as I read along in Jesse Noller's blog post <http://jessenoller.com/blog/2009/02/05/ssh-programming-with-paramiko-completely-different>. That host is listed in ~/.ssh/known_hosts thre

Re: Issuing commands using "exec_command()" of paramiko AND also sending commands together

2015-06-03 Thread KR
Hi Sreenathan Nair: import os, sys, import connectlibs as ssh s = ssh.connect("xxx.xx.xx.xxx", "Admin", "Admin") channel = s.invoke_shell() channel.send("net use F: xyz.xy.xc.xa\\dir\n") >>>32 channel.send("net use\n") >>>7 channel.recv(500) 'Last login: Tue Jun 2 23:52:29 2015 from xxx.xx.

Re: Issuing commands using "exec_command()" of paramiko AND also sending commands together

2015-06-03 Thread Sreenathan Nair
Hi, Could you be more specific about your problem? Perhaps an example of something similar to what you're trying to do would be helpful. Usually the process is to instantiate paramiko.SSHCLIENT, use the connect() method with desired parameters and execute commands using the exec_command(). If you

Issuing commands using "exec_command()" of paramiko AND also sending commands together

2015-06-02 Thread Pythonista
Using paramiko's exec_command(), i would like to send a command, process its output and do it for several other commands. I notice that its not quick enough or something like that. How would I handle that scenario AND also providing multiple commands together (there is 1 post on stackoverflow f

Re: Python Paramiko between Linux and Windows Server -- no output obtained from Windows for "dir" or "cd" commands

2015-05-31 Thread Pythonista
On Sunday, May 31, 2015 at 6:20:19 PM UTC-7, Dennis Lee Bieber wrote: > On Sun, 31 May 2015 13:12:24 -0700 (PDT), Pythonista > declaimed the following: > > > > >Thanks Peter but I got no output from your suggestion either.! > > From Windows viewpoint, I suspect EACH of the commands you sen

Re: Python Paramiko between Linux and Windows Server -- no output obtained from Windows for "dir" or "cd" commands

2015-05-31 Thread Pythonista
On Sunday, May 31, 2015 at 5:18:53 AM UTC-7, Peter Otten wrote: > Pythonista wrote: > > > Hello There: > > > > I am using Python 2.7.6 and Paramiko module (on a Linux server) to connect > > to a Windows server and send some commands and get output. I have a >

Re: Python Paramiko between Linux and Windows Server -- no output obtained from Windows for "dir" or "cd" commands

2015-05-31 Thread Peter Otten
Pythonista wrote: > Hello There: > > I am using Python 2.7.6 and Paramiko module (on a Linux server) to connect > to a Windows server and send some commands and get output. I have a > connect function which takes IP, username and password of the remote > Windows server and I

Python Paramiko between Linux and Windows Server -- no output obtained from Windows for "dir" or "cd" commands

2015-05-31 Thread Pythonista
Hello There: I am using Python 2.7.6 and Paramiko module (on a Linux server) to connect to a Windows server and send some commands and get output. I have a connect function which takes IP, username and password of the remote Windows server and I get an sshobj when that happens. How do I use it

paramiko-expect with Python 2->3 'str' buffer interface issues?

2015-03-23 Thread Nick Ellson
Hello, Newly trying out programming, Python for Network Engineers, and loving it. So I found paramiko for SSH, and now paramiko-expect for ssh expect like behavior. I am using Python 3.4 and have been through a number of examples of changing code to work in the 3.x environment. But is anyone

how can i get the file on my local pc from vps ip with paramiko or by some other way?

2014-12-17 Thread pengsir
I have an vps ,my local pc is in the local area network. When paramiko installed on my local pc ,i can get file from my vps. import paramiko t = paramiko.Transport(("vps ip",22)) t.connect(username = "username", password = "key") sftp = paramiko.SFTPClient.from

Re: how to delete my file if exits in the remote server with paramiko?

2014-12-14 Thread Roy Smith
In article , "" <1248283...@qq.com> wrote: > I want to delete the file "names.txt" if it exits in "/home/names.txt" in my > remote vps server. > import paramiko > host = "vps ip" > port = 22 > transport = parami

Re: how to delete my file if exits in the remote server with paramiko?

2014-12-14 Thread Skip Montanaro
On Sun, Dec 14, 2014 at 6:49 AM, 水静流深 <1248283...@qq.com> wrote: > Is there more elegant way to do the same work? Unlikely. You have two fairly simple bits of code in your example, one to connect to the remote server, the other to check for the file's existence and remove it. The only extra elegan

how to delete my file if exits in the remote server with paramiko?

2014-12-14 Thread ????????
I want to delete the file "names.txt" if it exits in "/home/names.txt" in my remote vps server. import paramiko host = "vps ip" port = 22 transport = paramiko.Transport((host, port)) password = "key" username = "root" transport.conn

how to install paramiko correctly?

2014-12-07 Thread sir
My system:win7+python3.4 . I have installed Crypto and Paramiko . C:\Windows\system32>pip3.4 install Crypto Requirement already satisfied (use --upgrade to upgrade): Crypto in d:\python34\ lib\site-packages Cleaning up... C:\Windows\system32>pip3.4 install Pa

Re: multiprocess (and paramiko)

2014-06-03 Thread mennis
I'm familiar with and have learned much from fabric. Its execution model don't work for this specific interface I'm working on. I use fabric for other things though and it's great. Ian -- https://mail.python.org/mailman/listinfo/python-list

Re: multiprocess (and paramiko)

2014-06-03 Thread Roy Smith
y answered your question, but to answer the question you didn't ask, you probably want to ditch working directly with paramiko and take a look at fabric (http://www.fabfile.org/). It layers a really nice interface on top of paramiko. Instead of gobs of low-level paramiko code, you just do s

Re: multiprocess (and paramiko)

2014-06-03 Thread Chris Angelico
On Wed, Jun 4, 2014 at 1:43 AM, mennis wrote: > I was able to work around this by using a completely different design but I > still don''t understand why this doesn't work. It appears that the process > that launches the process doesn't get access to updated object attributes. > When I set an

multiprocess (and paramiko)

2014-06-03 Thread mennis
ed host in a new channel. import multiprocessing from time import time from Crypto import Random import paramiko class Nonblock(multiprocessing.Process): def __init__(self, connection, cmd): Random.atfork() multiprocessing.Process.__init__(self) self.transport =

Re: Paramiko Help. Execute command to Interactive Shell which is opened by SSHClient()

2013-08-11 Thread Joshua Landau
On 11 August 2013 09:57, Chris Angelico wrote: > On Thu, Aug 8, 2013 at 8:20 AM, sagar varule wrote: >> stdin, stdout, stderr = client.exec_command(bv_cmd) >> for line in stderr.readlines(): >> print line >> for line in stdout.readlines(): >>

Re: Paramiko Help. Execute command to Interactive Shell which is opened by SSHClient()

2013-08-11 Thread Chris Angelico
On Thu, Aug 8, 2013 at 8:20 AM, sagar varule wrote: > stdin, stdout, stderr = client.exec_command(bv_cmd) > for line in stderr.readlines(): > print line > for line in stdout.readlines(): > print line > But problem here is client.exec_command

Re: Paramiko Help. Execute command to Interactive Shell which is opened by SSHClient()

2013-08-11 Thread Joshua Landau
On 11 August 2013 08:02, sagar varule wrote: > On Sunday, August 11, 2013 11:28:31 AM UTC+5:30, Joshua Landau wrote: >> You also didn't say what didn't work with the first block of code. > > Submitting Command to Interactive Shell through code did not work. In what way didn't it work? What's the

Re: Paramiko Help. Execute command to Interactive Shell which is opened by SSHClient()

2013-08-11 Thread sagar varule
On Sunday, August 11, 2013 11:28:31 AM UTC+5:30, Joshua Landau wrote: > On 11 August 2013 06:18, sagar varule wrote: > > > Can any one comment on this.. > > > > If you don't get replies here it's probably because no-one knows > > Paramiko. I suggest p

Re: Paramiko Help. Execute command to Interactive Shell which is opened by SSHClient()

2013-08-10 Thread Joshua Landau
On 11 August 2013 06:18, sagar varule wrote: > Can any one comment on this.. If you don't get replies here it's probably because no-one knows Paramiko. I suggest posting elsewhere to see if there are any Paramiko users in other places willing to help. There might be a Paramiko maili

Re: Paramiko Help. Execute command to Interactive Shell which is opened by SSHClient()

2013-08-10 Thread sagar varule
On Thursday, August 8, 2013 12:50:25 PM UTC+5:30, sagar varule wrote: > Hi All, > > > > Im using Paramiko for my SSH automation. Im using method that is shown in > demo_simple.py example which comes with Paramiko. Below is code from > demo_simple.py. > > > >

Re: paramiko installation problem

2013-08-08 Thread D. Xenakis
Wow thats bad news. Any workaround? What im trying to succeed here is create one SSH tunnel, so that i can connect from a python script running on my pc, to a remote MySQL database running on my Host and id like to stick with Python 3.3 . Any thoughts? -- http://mail.python.org/mailman/listinfo

Re: paramiko installation problem

2013-08-08 Thread MRAB
ib', 'C:\\Python33', 'C:\\Python33\\lib\\site-packages'] then if i type: sys.path.append('C:\\Python33\\Lib\\site-packages\\paramiko') and then again.. print (sys.path) returns: ['C:\\Python33\\Lib\\idlelib', 'C:\\Python33\\lib\\site-packages\\p

Re: paramiko installation problem

2013-08-08 Thread D. Xenakis
'C:\\Python33', 'C:\\Python33\\lib\\site-packages'] then if i type: >>> sys.path.append('C:\\Python33\\Lib\\site-packages\\paramiko') and then again.. >>> print (sys.path) returns: ['C:\\Python33\\Lib\\idlelib', 'C:\\Python33\\lib\\site-p

paramiko installation problem

2013-08-08 Thread D. Xenakis
Im having problems using paramiko after installation on my Win7 64bit system. I can see both paramiko and pycrypto being "there" installed via pip list: I have tried so many different ways but in the end im always getting the same error when trying to import paramiko: (i can import C

Paramiko Help. Execute command to Interactive Shell which is opened by SSHClient()

2013-08-08 Thread sagar varule
Hi All, Im using Paramiko for my SSH automation. Im using method that is shown in demo_simple.py example which comes with Paramiko. Below is code from demo_simple.py. As you can make out, below code opens SSH connection and opens Interactie Shell, and then wait for the command from user. I

My script use paramiko module, it will be blocked at compute_hmac

2013-02-22 Thread Jack
the python process, found that: /(gdb) py-bt #2 #4 file '/usr/lib64/python2.6/threading.py', in 'wait' #8 file '/usr/lib64/python2.6/threading.py', in 'wait' #12 file '/usr/lib/python2.6/site-packages/paramiko-1.9.0-py2.6.egg/paramiko/auth_handler.p

Re: Help On Paramiko

2012-06-19 Thread Michael Torrie
On 06/19/2012 12:28 AM, nikunj.badja...@emc.com wrote: > Howdy All, > > I am trying to use paramiko to automate logging in to remote unix machines > and executing some commands there. > When I normally do ssh from my linux machine (with Python 2.6) to this > machine a differen

Re: [BangPypers] Help On Paramiko

2012-06-19 Thread satyaakam goswami
m/p/sshpt/ which served all our requirements so we stuck to . it too uses paramiko. -Satya fossevents.in -- http://mail.python.org/mailman/listinfo/python-list

Re: [BangPypers] Help On Paramiko

2012-06-19 Thread Guru
Refer this site you may get some useful information http://segfault.in/2010/03/paramiko-ssh-and-sftp-with-python/ On Tue, Jun 19, 2012 at 12:00 PM, Noufal Ibrahim wrote: > > Fabric is a library built on paramiko that gives you abstractions so > that you don't have to worry about

Re: [BangPypers] Help On Paramiko

2012-06-18 Thread Noufal Ibrahim
Fabric is a library built on paramiko that gives you abstractions so that you don't have to worry about things at such a fine grained level. Perhaps you should try using that. writes: > Howdy All, > > I am trying to use paramiko to automate logging in to remote unix machines &

Help On Paramiko

2012-06-18 Thread Nikunj.Badjatya
Howdy All, I am trying to use paramiko to automate logging in to remote unix machines and executing some commands there. When I normally do ssh from my linux machine (with Python 2.6) to this machine a different '>' prompt comes. It's a device specific custom prompt. A

Re: Whither paramiko?

2012-04-19 Thread Richard Shea
On Apr 19, 8:28 pm, Richard Shea wrote: > On Apr 16, 1:42 am, Bryan wrote:> > Paramiko is a Python library for SSH (Secure Shell). Over about the > > last year, I've grown dependent upon it. Its home page is still easy > > to search up, but the links to its mailing

Re: Whither paramiko?

2012-04-19 Thread Richard Shea
On Apr 16, 1:42 am, Bryan wrote: > Paramiko is a Python library for SSH (Secure Shell). Over about the > last year, I've grown dependent upon it. Its home page is still easy > to search up, but the links to its mailing list and repository don't > work. > > Paramiko dep

Re: Whither paramiko?

2012-04-16 Thread Matej Cepl
On 15.4.2012 15:42, Bryan wrote: Paramiko is a Python library for SSH (Secure Shell). Over about the last year, I've grown dependent upon it. Its home page is still easy to search up, but the links to its mailing list and repository don't work. Paramiko depends on PyCrypto, and not s

Whither paramiko?

2012-04-15 Thread Bryan
Paramiko is a Python library for SSH (Secure Shell). Over about the last year, I've grown dependent upon it. Its home page is still easy to search up, but the links to its mailing list and repository don't work. Paramiko depends on PyCrypto, and not so long ago that dependency was

Re: Paramiko Question

2011-11-03 Thread MRAB
On 03/11/2011 09:22, Jacob Abraham wrote: Hi All, I need help with the below mentioned script. The second time I call a.execute, self.transport.open_session() fails with an EOF error. Is this a paramiko bug or am I doing something wrong? import paramiko class Connection(object

Paramiko Question

2011-11-03 Thread Jacob Abraham
Hi All, I need help with the below mentioned script. The second time I call a.execute, self.transport.open_session() fails with an EOF error. Is this a paramiko bug or am I doing something wrong? import paramiko class Connection(object): def __init__(self, host, username = None

Tunneling using paramiko to establish tunnel with lab-router

2011-09-21 Thread Vinay
Hello Friends, I am looking to implement tunneling in python and using "Paramiko" for this.. Sending theTunneling script using Paramiko -Python. It's facing some prob, hangs on running the script..output message it says ".. Missing Handlers". Plz let me know the

Question about how to get line buffering from paramiko

2011-07-05 Thread Steven W. Orr
I'm writing a program that uses paramiko to run a lot of commands over ssh. Some of the commands take time to run and they write to stdout and stderr as a normal part of their operation so that we can see progress happening. I can't seem to get the output from the remote commands

Re: Paramiko Threading Error

2011-06-14 Thread mud
On Jun 10, 3:47 am, David <71da...@libero.it> wrote: > Il Tue, 7 Jun 2011 19:25:43 -0700 (PDT), mud ha scritto: > > > > > > > > > > > Hi All, > > > Does anybody know what the following error means with paramiko, and > > how to fix it. >

Re: Paramiko Threading Error

2011-06-09 Thread David
Il Tue, 7 Jun 2011 19:25:43 -0700 (PDT), mud ha scritto: > Hi All, > > Does anybody know what the following error means with paramiko, and > how to fix it. > > I don't know what is causing it and why. I have updated paramiko to > version 1.7.7.1 (George) but still has

Paramiko Threading Error

2011-06-07 Thread mud
Hi All, Does anybody know what the following error means with paramiko, and how to fix it. I don't know what is causing it and why. I have updated paramiko to version 1.7.7.1 (George) but still has the same issue. Also I can not reproduce the problem and therefore debugging is harder f

AttributeError while running ssh (from windows) paramiko need help

2010-12-13 Thread Darshak Bavishi
Hi Experts , while i am running following demo ssh script of paramiko --> *import base64* *import getpass* *import os* *import socket* *import sys* *import traceback* * * *import paramiko* *import interactive* * * * * *# setup logging* *paramiko.util.log_to_file('demo_simple.log'

Paramiko and Threading

2010-09-29 Thread Jacob Abraham
Hi, Could someone help me understand how to using threading along with paramiko. For some reason only one of two of the threads returns the output correctly. Some of the threads returns an empty string as command output, but no errors are thrown. My attempt is pasted below. regards, Jacob

Re: scp with paramiko

2010-09-14 Thread Alexander Gattin
Hello, On Wed, Sep 01, 2010 at 09:56:18AM -0700, cerr wrote: > I want to download a file from a client using > paramiko. I found plenty of ressources using > google on how to send a file but none that > would describe how to download files from a > client. Download files from

scp with paramiko

2010-09-01 Thread cerr
Hi There, I want to download a file from a client using paramiko. I found plenty of ressources using google on how to send a file but none that would describe how to download files from a client. Help would be appreciated! Thanks a lot! Ron -- http://mail.python.org/mailman/listinfo/python

Re: Threading problem / Paramiko problem ?

2009-12-28 Thread MRAB
mk wrote: Hello everyone, I wrote "concurrent ssh" client using Paramiko, available here: http://python.domeny.com/cssh.py This program has a function for concurrent remote file/dir copying (class SSHThread, method 'sendfile'). One thread per host specified is started

Threading problem / Paramiko problem ?

2009-12-28 Thread mk
Hello everyone, I wrote "concurrent ssh" client using Paramiko, available here: http://python.domeny.com/cssh.py This program has a function for concurrent remote file/dir copying (class SSHThread, method 'sendfile'). One thread per host specified is started for cop

Re: Python based paramiko package acting up on Linux, code works fine on windows

2009-09-18 Thread flxkid
On Sep 18, 11:22 am, flxkid wrote: > I've tried to post to the mailing list for paramiko and contact the > author, but it seems he's having some mailing list problems.  Anyways, > I have this small example that works just fine on Windows against > Python 2.6.2, but fails o

Python based paramiko package acting up on Linux, code works fine on windows

2009-09-18 Thread flxkid
I've tried to post to the mailing list for paramiko and contact the author, but it seems he's having some mailing list problems. Anyways, I have this small example that works just fine on Windows against Python 2.6.2, but fails on Ubuntu against 2.6.2. Here is the code: import subproc

Re: how to log connection refused attempt with python-paramiko

2009-09-09 Thread nickname
On Sep 9, 3:37 pm, nickname wrote: > On Sep 9, 3:35 pm, nickname wrote: > > > > > hello all, > >             I am getting to grips with paramiko. I am trying to open a > > ssh connection to my server 127.0.0.1 using paramiko and want to > > specify the passwo

Re: how to log connection refused attempt with python-paramiko

2009-09-09 Thread nickname
On Sep 9, 3:35 pm, nickname wrote: > hello all, >             I am getting to grips with paramiko. I am trying to open a > ssh connection to my server 127.0.0.1 using paramiko and want to > specify the password via the program itself. I want to generate  and > change passwds via t

how to log connection refused attempt with python-paramiko

2009-09-09 Thread nickname
hello all, I am getting to grips with paramiko. I am trying to open a ssh connection to my server 127.0.0.1 using paramiko and want to specify the password via the program itself. I want to generate and change passwds via the program very frequently and hence am avoiding a key based

Re: Executing remote command with paramiko

2009-08-03 Thread Piet van Oostrum
>>>>> Hussein B (HB) wrote: >HB> Hey, >HB> I'm trying to run a sudo guarded command over SSH using paramiko >HB> +++ >HB> s = paramiko.SSHClient() >HB> s.load_system_host_keys() >HB> s.connect(hostname, port, username, pass

Executing remote command with paramiko

2009-08-03 Thread Hussein B
Hey, I'm trying to run a sudo guarded command over SSH using paramiko +++ s = paramiko.SSHClient() s.load_system_host_keys() s.connect(hostname, port, username, passwd) stdin, stdout, stderr = s.exec_command('sudo -s') stdin.write('password\n') stdin.flush

Re: Paramiko help - processing multiple commands

2009-06-25 Thread J. Clifford Dyer
On Wed, 2009-06-24 at 15:22 -0700, Frank Ruiz wrote: > Greetings, > > I am trying to process multiple commands using paramiko. I have > searched other threads, and I think my use case is a little different. > I am trying to login to a storage node that has a special shell, and &

Re: Paramiko help - processing multiple commands

2009-06-24 Thread Noah Dain
te: >> On Jun 24, 11:22 pm, Frank Ruiz wrote: >>> Greetings, >>> >>> I am trying to process multiple commands using paramiko. I have >>> searched other threads, and I think my use case is a little different. >>> I am trying to login to a storage no

Re: Paramiko help - processing multiple commands

2009-06-24 Thread Frank Ruiz
once I review it a few more times. Thanks! On Wed, Jun 24, 2009 at 4:34 PM, Jon Clements wrote: > On Jun 24, 11:22 pm, Frank Ruiz wrote: >> Greetings, >> >> I am trying to process multiple commands using paramiko. I have >> searched other threads, and I think my use

Re: Paramiko help - processing multiple commands

2009-06-24 Thread Jon Clements
On Jun 24, 11:22 pm, Frank Ruiz wrote: > Greetings, > > I am trying to process multiple commands using paramiko. I have > searched other threads, and I think my use case is a little different. > I am trying to login to a storage node that has a special shell, and > as such I can

Paramiko help - processing multiple commands

2009-06-24 Thread Frank Ruiz
Greetings, I am trying to process multiple commands using paramiko. I have searched other threads, and I think my use case is a little different. I am trying to login to a storage node that has a special shell, and as such I cant execute a script on the storage node side. I am also trying to

Re: Paramiko Help

2009-06-24 Thread MRAB
Frank Ruiz wrote: Apologies.. Python newb here.. switching from perl to python.. so please forgive if this is a dumb question. I am using the paramiko module and have some global variables defined. i.e. hostname = ' 10.10.10.10' sshport = '22' I am then trying to pass th

Re: Paramiko Help

2009-06-24 Thread Chris Rebert
On Wed, Jun 24, 2009 at 2:01 PM, Frank Ruiz wrote: > Apologies.. Python newb here.. switching from perl to python.. so > please forgive if this is a dumb question. > > I am using the paramiko module and have some global variables defined. > > i.e. > > hostname = '

Re: Paramiko Help

2009-06-24 Thread Jon Clements
On Jun 24, 10:01 pm, Frank Ruiz wrote: > Apologies.. Python newb here.. switching from perl to python.. so > please forgive if this is a dumb question. > > I am using the paramiko module and have some global variables defined. > > i.e. > > hostname = ' 10.10.10.10&#x

Paramiko Help

2009-06-24 Thread Frank Ruiz
Apologies.. Python newb here.. switching from perl to python.. so please forgive if this is a dumb question. I am using the paramiko module and have some global variables defined. i.e. hostname = ' 10.10.10.10' sshport = '22' I am then trying to pass this variable int

Re: Does Paramiko 1.7.2 and 1.6.4 work with CentOS 4

2009-02-24 Thread Jason Scheirer
On Feb 25, 12:55 am, Shah Sultan Alam wrote: > Hi Groups, >  Can you please help me on the following... > > 1. Does Paramiko 1.7.2 and 1.6.4 work with CentOS 4 > > 2. If yes, what is the exact 'yum' command to install paramiko on CentOS 4? > I have tried al

Does Paramiko 1.7.2 and 1.6.4 work with CentOS 4

2009-02-24 Thread Shah Sultan Alam
Hi Groups, Can you please help me on the following... 1. Does Paramiko 1.7.2 and 1.6.4 work with CentOS 4 2. If yes, what is the exact 'yum' command to install paramiko on CentOS 4? I have tried all possible ones without success. yum install paramiko yum install pytho

  1   2   >