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
@Jayze611 If you manually SSH to one of these devices, can you show what the SSH login process looks like (obviously, you can hide anything that is confidential to your environment).
Before the username and the password when we SSH to the switch, it prompt 'Login as':
Which can be anything
This is where we think that it blocks us accessing.
Maybe look at the session_log or the Python debugger and see where it is getting to.
The driver does have the login as and the User Name/Password handling coded in. Your banner might cause problems, but try looking at session_log and/or the debugger to see where it is hanging up at.
Hi Anyone
We are trying to log in to SG250-26HP, SG200-18, SF220-24 24, SG250-26 26, CBS350-24FP Switches using Netmiko python scripts to configure switches.
Unfortunately not as routers they have Login as: and username both when SSH.
We tried few different ways but failed
Sample as follow
from netmiko import Netmiko
from getpass import getpass
cisco_sw = {
"host": "", # input("Host: "),
"username": "admin", # input("Username: "),
"password": "", # getpass(),
"device_type": "cisco_s200"
}
connection = Netmiko(**cisco_sw)
prompt = connection.find_prompt()
print(prompt)
output = connection.send_command("show vlan")
print(output)
connection.disconnect()
But we are getting an error each time we try , tried this in all different models
is there a way around it to SSH in to these switches using netmiko
The text was updated successfully, but these errors were encountered: