Hello James,
I'm sorry to say that it doesn't work:
james bardin wrote:
I don't there's any way to set the security options with SSHClient, so
you will have to use the Transport directly.
###
import paramiko
import socket
s = socket.socket()
s.connect(('localhost', 22))
t =
On Wed, Jan 27, 2010 at 6:40 AM, Marcin Krol mrk...@gmail.com wrote:
###
import paramiko
import socket
s = socket.socket()
s.connect(('localhost', 22))
t = paramiko.Transport(s)
t.get_security_options().ciphers = ('arcfour128',)
t.connect
.
Regardless of what I set as
On Tue, Jan 26, 2010 at 5:20 PM, stefano landucci marlonba...@gmail.com wrote:
Hi,
I'm a paramiko's newbie. I started with a simple ssh connection and command
execution like below:
import sys
import paramiko
client = paramiko.SSHClient()
client.load_system_host_keys()
ip = 'ip_server'
2010/1/27 james bardin jbar...@bu.edu
The short answer is, you don't.
Run your commands separately with exec_command(), and remove their
dependencies on one another, and you will be much happier.
Ok.
I find the example below:
i, o, e = client.exec_command('cd /etc')
i.write('ls\n')