cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
432
Views
0
Helpful
1
Replies

SSH Login As prompt breaking automatic logon scripts

Andrew.parnell
Level 1
Level 1

I'm trying to write an automatic logon script as part of a configuration checker for some 5508 controller installations. When the SSH connection opens, the client sends the username and password to the login as prompt, meaning the automatic logon fails and I can't issue the commands needed to test the config.

Does anyone know how to disable the login as prompt, or how I can script my way around this?

1 Reply 1

Thomas Johnston
Level 1
Level 1

You did not provide details on what language your script is in so I'll assume Linux. If you expect you can simply have the expect script check for "user" and "password". 

https://www.linkedin.com/pulse/simple-bash-scripts-using-expect-cisco-devices-daniel-gilbertson