-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail to re-use SSH session when connecting to Cisco C2960 switcher #55
Comments
I got this problem too. How did you fix it? |
Hi all, I got this too... A workaround is to use It would be really good to see this fixed since detecting prompts is very hacky and time-out has to be tuned for specific commands (Alcatel Andreas (Testing with python 2.7 and 3.4) |
The most likely reason for the EOFError is that the device does not support an SSH channel 'exec' request - which is what exec_command() is attempting - and drops the connection. The Cisco documentation for 2960-C SSH capability states (under limitations) that :
which presumably means that - as mentioned above - |
@jun66j5 -- if this issue is also due to a Cisco-specific behavior, should we close it also? |
@bskinn Yes. We should close it also. That is an issue of Cisco device, not an issue of ssh client. |
Here's my code:
result in:
The text was updated successfully, but these errors were encountered: