You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I keep getting Error: Paramiko.ssh_exception.SSHException: Error Reading SSH Protocol Banner.
when i try to disable the SSH on cisco switch. the SSHException is not working..
cisco version: Cisco IOS Software, C2960X Software (C2960X-UNIVERSALK9-M), Version 15.2(2)E6, R
netmiko
VERSION
4.1.2
paramiko
VERSION
2.12.0
my python file script:
from netmiko import ConnectHandler
from netmiko.exceptions import NetMikoTimeoutException
from paramiko.ssh_exception import SSHException
from paramiko.ssh_exception import AuthenticationException
IP_LIST = open('15_devices.txt')
for IP in IP_LIST:
print ('\n'+ IP.strip() + ' \n' )
RTR = {
'ip': IP,
'username': 'cisco',
'password': 'cisco123',
'device_type': 'cisco_ios',
'secret': 'cisco123',
}
try:
net_connect = ConnectHandler(**RTR)
except NetMikoTimeoutException:
print ('Device not reachable.')
continue
except AuthenticationException:
print ('Authentication Failure.')
continue
except SSHException:
print ('Make sure SSH is enabled in device.')
continue
output = net_connect.send_command('show ip int brief')
print(output)
The text was updated successfully, but these errors were encountered:
emilduerme
changed the title
Netmiko
Paramiko.ssh_exception.SSHException: Error Reading SSH Protocol Banner.
Nov 12, 2022
Can anyone help.?
I keep getting Error: Paramiko.ssh_exception.SSHException: Error Reading SSH Protocol Banner.
when i try to disable the SSH on cisco switch. the SSHException is not working..
cisco version: Cisco IOS Software, C2960X Software (C2960X-UNIVERSALK9-M), Version 15.2(2)E6, R
netmiko
VERSION
4.1.2
paramiko
VERSION
2.12.0
my python file script:
from netmiko import ConnectHandler
from netmiko.exceptions import NetMikoTimeoutException
from paramiko.ssh_exception import SSHException
from paramiko.ssh_exception import AuthenticationException
IP_LIST = open('15_devices.txt')
for IP in IP_LIST:
print ('\n'+ IP.strip() + ' \n' )
RTR = {
'ip': IP,
'username': 'cisco',
'password': 'cisco123',
'device_type': 'cisco_ios',
'secret': 'cisco123',
}
The text was updated successfully, but these errors were encountered: