[paramiko] no existing session
Chris Hallman
challman at gmail.com
Thu Jul 26 21:32:17 PDT 2007
I'm trying to write a program that connects to a Cisco router to run
multiple commands and collect data. I've tried the following:
import socket
import paramiko
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect((''rtr3926', 22))
trans = paramiko.Transport(sock)
trans.auth_password('user', 'password')
and I receive this error:
>pythonw -u "paramiko.test.py"
Traceback (most recent call last):
File " paramiko.test.py", line 10, in <module>
trans.auth_password('####', '####')
File "c:\python25\Lib\site-packages
\paramiko\transport.py", line 1096, in auth_password
raise SSHException('No existing session')
paramiko.SSHException: No existing session
>Exit code: 1
Any ideas why I'm receiving this error?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.lag.net/pipermail/paramiko/attachments/20070727/7f3a3afa/attachment.htm
More information about the paramiko
mailing list