Paramiko SSH python
问题 I´m trying the simplest way to make a SSH connection and execute a command with paramiko import paramiko, base64 client = paramiko.SSHClient() client.load_system_host_keys() client.connect('10.50.0.150', username='XXXXX', password='XXXXXX') stdin, stdout, stderr = client.exec_command('show performance -type host-io') for line in stdout: print '... ' + line.strip('\n') client.close() ------------ERROR----------------------- Traceback (most recent call last): File "a.py", line 5, in <module>