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 providing

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

2016-02-29 Thread reachparagm
Sagar, Have you worked on RobotFramework-sshlibrary. It seem to have very simple interface for both command processing/execution as well as interactive session to grep responses and decide the flow. Let me know if you face any issues. Can help you solve. -paragm On Thursday, August 8, 2013 at

Re: Paramiko SSHClient.connect() problem

2015-10-27 Thread Chris Angelico
On Wed, Oct 28, 2015 at 6:56 AM, Skip Montanaro wrote: > On Tue, Oct 27, 2015 at 1:40 PM, Chris Angelico wrote: >> >> If you hack your hosts file to have only one localhost, >> does the problem disappear? > > > Yes, that appears to solve the problem. Thanks. I hadn't even thought there > would be

Re: Paramiko SSHClient.connect() problem

2015-10-27 Thread Skip Montanaro
On Tue, Oct 27, 2015 at 1:40 PM, Chris Angelico wrote: > If you hack your hosts file to have only one localhost, > does the problem disappear? > Yes, that appears to solve the problem. Thanks. I hadn't even thought there would be IPv4/IPv6 distinctions here. Interestingly enough, the box does s

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") > error getsockaddrarg: bad family > [||1] [paramiko/c

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|missing_host_key|570] > I figured out that I needed

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 posting elsewhere to see if there are any 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 mailing list. You

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. > > > > As you can make out, below code

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
On 08/08/2013 19:04, D. Xenakis wrote: import sys print (sys.path) returns: ['C:\\Python33\\Lib\\idlelib', 'C:\\Python33\\lib\\site-packages\\pip-1.4-py3.3.egg', 'C:\\Windows\\system32\\python33.zip', 'C:\\Python33\\DLLs', 'C:\\Python33\\lib', 'C:\\Python33', 'C:\\Python33\\lib\\site-packag

Re: paramiko installation problem

2013-08-08 Thread D. Xenakis
>>> import sys >>> print (sys.path) returns: ['C:\\Python33\\Lib\\idlelib', 'C:\\Python33\\lib\\site-packages\\pip-1.4-py3.3.egg', 'C:\\Windows\\system32\\python33.zip', 'C:\\Python33\\DLLs', 'C:\\Python33\\lib', 'C:\\Python33', 'C:\\Python33\\lib\\site-packages'] then if i type: >>> sys.path

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): d

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. > > > I don't know what is causing it and why. I have updated pa

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 the same issue. > > Also I

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 > as such I cant exe

Re: Paramiko help - processing multiple commands

2009-06-24 Thread Noah Dain
On Wed, Jun 24, 2009 at 8:35 PM, Frank Ruiz wrote: > Hi Jon, > > Thanks for the reply. So there are no errors. Essentially everything > runs as planned. Sorry for being ignorant, but I am not sure if there > is another way for providing trace data. I will look into what other > debugging I can prov

Re: Paramiko help - processing multiple commands

2009-06-24 Thread Frank Ruiz
Hi Jon, Thanks for the reply. So there are no errors. Essentially everything runs as planned. Sorry for being ignorant, but I am not sure if there is another way for providing trace data. I will look into what other debugging I can provide. Essentially what happens is that only the second command

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 cant execute a script

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 this variable into the c

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 = ' 10.10.10.10' > sshport = '22' I'm

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' > sshport = '22' > > I am then t

Re: Paramiko bugs out on windows 2003 server

2008-03-24 Thread John Machin
On Mar 25, 7:50 am, "Tarun Kapoor" <[EMAIL PROTECTED]> wrote: > I am using the paramiko library to pull a data from a server using SFTP. > It works perfect on a windows xp machine but bugs out a windows 2003 > server. I get the following error: > Traceback (most recent call last): > File "S:\Temp

RE: paramiko

2008-03-20 Thread Tarun Kapoor
anks !! Tk -Original Message- From: Guilherme Polo [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 16, 2008 11:12 AM To: Tarun Kapoor; python-list@python.org Subject: Re: paramiko 2008/1/16, Tarun Kapoor <[EMAIL PROTECTED]>: > > > > > I am using paramiko to do an SFTP file trans

Re: Paramiko SFTP autologon using id_dsa.pub

2008-02-13 Thread Michele Hjorleifsson
wow been going nuts here after cutting and pasting to get a working test so i ran demo.py ... and its not me.. i changed the hostname for obvious reasongs, the id_dsa file does exist. i can sftp from bash no problem. there is NO password on the key Any ideas ? here is what i get. Hostname: x

Re: Paramiko SFTP autologon using id_dsa.pub

2008-02-07 Thread Martin v. Löwis
> sorry i meant a code example that i pass the id_dsa.pub file contents > too > so i am not reliant on the host system to have the ssh-agent. c.connect("",username="loewis",key_filename=".ssh/identity") works for me with ssh-agent disabled. Regards, Martin -- http://mail.python.org/mailman/list

Re: Paramiko SFTP autologon using id_dsa.pub

2008-02-07 Thread Todd Whiteman
Mike Hjorleifsson wrote: > I wrote a lil module using paramiko's module to send a file via > sftp.. it works great using the username and password. > I would prefer to use id_dsa.pub to have an autologon and not save > the > password anywhere on the disk.. I cant find a good example of this. > Can

Re: Paramiko SFTP autologon using id_dsa.pub

2008-02-06 Thread Mike Hjorleifsson
sorry i meant a code example that i pass the id_dsa.pub file contents too so i am not reliant on the host system to have the ssh-agent. On Feb 6, 3:09 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > Mike Hjorleifsson wrote: > > Thanks for the response, is there an example bit of code somewhere

Re: Paramiko SFTP autologon using id_dsa.pub

2008-02-06 Thread Martin v. Löwis
Mike Hjorleifsson wrote: > Thanks for the response, is there an example bit of code somewhere i > could digest ? I did c.connect("",username="loewis") with ssh-agent, and it worked just fine. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Paramiko SFTP autologon using id_dsa.pub

2008-02-06 Thread Mike Hjorleifsson
Thanks for the response, is there an example bit of code somewhere i could digest ? On Feb 6, 1:35 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > I wrote a lil module using paramiko's module to send a file via > > sftp.. it works great using the username and password. > > I would prefer to u

Re: Paramiko SFTP autologon using id_dsa.pub

2008-02-06 Thread Martin v. Löwis
> I wrote a lil module using paramiko's module to send a file via > sftp.. it works great using the username and password. > I would prefer to use id_dsa.pub to have an autologon and not save > the > password anywhere on the disk.. I cant find a good example of this. > Can anyone help ? When you h

Re: paramiko

2008-01-16 Thread Guilherme Polo
2008/1/16, Tarun Kapoor <[EMAIL PROTECTED]>: > On Jan 16, 1:56 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > > 2008/1/16, Tarun Kapoor <[EMAIL PROTECTED]>: > > > > > > > > > On Jan 16, 12:22 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > > > > 2008/1/16, Tarun Kapoor <[EMAIL PROTECTED]>: > >

Re: paramiko

2008-01-16 Thread Tarun Kapoor
On Jan 16, 1:56 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > 2008/1/16, Tarun Kapoor <[EMAIL PROTECTED]>: > > > > > On Jan 16, 12:22 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > > > 2008/1/16, Tarun Kapoor <[EMAIL PROTECTED]>: > > > > > On Jan 16, 11:38 am, "Guilherme Polo" <[EMAIL PROTEC

Re: paramiko

2008-01-16 Thread Guilherme Polo
2008/1/16, Tarun Kapoor <[EMAIL PROTECTED]>: > On Jan 16, 12:22 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > > 2008/1/16, Tarun Kapoor <[EMAIL PROTECTED]>: > > > > > > > > > On Jan 16, 11:38 am, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > > > > 2008/1/16, Tarun Kapoor <[EMAIL PROTECTED]>: >

Re: paramiko

2008-01-16 Thread Tarun Kapoor
On Jan 16, 12:22 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > 2008/1/16, Tarun Kapoor <[EMAIL PROTECTED]>: > > > > > On Jan 16, 11:38 am, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > > > 2008/1/16, Tarun Kapoor <[EMAIL PROTECTED]>: > > > > > # now, connect and use paramiko Transport to ne

Re: paramiko

2008-01-16 Thread Guilherme Polo
2008/1/16, Tarun Kapoor <[EMAIL PROTECTED]>: > On Jan 16, 11:38 am, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > > 2008/1/16, Tarun Kapoor <[EMAIL PROTECTED]>: > > > > > > > > > # now, connect and use paramiko Transport to negotiate SSH2 across > > > the connection > > > sock = socket.sock

Re: paramiko

2008-01-16 Thread Tarun Kapoor
On Jan 16, 11:38 am, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > 2008/1/16, Tarun Kapoor <[EMAIL PROTECTED]>: > > > > > # now, connect and use paramiko Transport to negotiate SSH2 across > > the connection > > sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > > sock.connect((

Re: paramiko

2008-01-16 Thread Guilherme Polo
2008/1/16, Tarun Kapoor <[EMAIL PROTECTED]>: > # now, connect and use paramiko Transport to negotiate SSH2 across > the connection > sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > sock.connect((hostname, port)) > > t = paramiko.Transport(sock) > t.start_client() >

Re: paramiko

2008-01-16 Thread Tarun Kapoor
# now, connect and use paramiko Transport to negotiate SSH2 across the connection sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((hostname, port)) t = paramiko.Transport(sock) t.start_client() key = t.get_remote_server_key() event = threading.Eve

Re: paramiko

2008-01-16 Thread Guilherme Polo
2008/1/16, Tarun Kapoor <[EMAIL PROTECTED]>: > > > > > I am using paramiko to do an SFTP file transfer… I was able to connect to > the remote server using an SFTP client I have just to make sure that > username and password are working.. This is the code. > > > > # now, connect and use paramiko

Re: paramiko public key

2006-12-13 Thread eight02645999
hg wrote: > [EMAIL PROTECTED] wrote: > > > paramiko > http://www.lag.net/paramiko/docs/ > > __str__ ? hi thanks for the tip i done up a function to generate priv/pub key pairs like this def keygen(bits,fil,password=None): k = paramiko.RSAKey.generate(bits) k.write_private_key_fil

Re: paramiko public key

2006-12-12 Thread hg
[EMAIL PROTECTED] wrote: > paramiko http://www.lag.net/paramiko/docs/ __str__ ? -- http://mail.python.org/mailman/listinfo/python-list