jamiecaesar / securecrt-tools

SecureCRT scripts, written in Python, for doing various tasks when connected to Cisco equipment.
Apache License 2.0
245 stars 78 forks source link

multi device script could not login to aireos devices #58

Open cmacasae opened 1 year ago

cmacasae commented 1 year ago

i modified a multi device script to run a single device script for WLC running AireOS. The single device script works. However calling it in a multidevice script, the script could not successfully login. It seem the AireOS ignore the ssh -l flag it received and prompts again user: where the script hangs until the ssh session timedout.

jamiecaesar commented 1 year ago

I will have a hard time replicating this one, as most of the AireOS scripts were contributed by someone else. Since the multi-device scripts use SecureCRT to initiate the SSH connection, if it isn't honoring the username that SecureCRT sends and is re-prompting for passwords, there may not be anything that can be done for that. The SecureCRT API only gives so much control over the application interaction, and in a case like that I'm not sure we have any option.

I'm not sure if anything has changed in version 9.0 of SecureCRT -- I still haven't had any time to even look into that since I'm not using it in my day-to-day anymore, but hopefully one day I will!