Hi,
I use your programm to login to switches.
Sometimes if they are a little bit busy, it does not work.
First the switch promts a banner, than it takes 3 or more secounds, then the it prompts
Password:
But sshpass no longer recognizes this and stops working in this step.
Many Thanks for help
Here is a short debug output:
...
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 53
debug3: input_userauth_banner
* Unauthorized access prohibited ***
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,keyboard-interactive,password
debug3: start over, passed a different list publickey,keyboard-interactive,password
debug3: preferred gssapi-keyex,gssapi-with-mic,keyboard-interactive,password
debug3: authmethod_lookup keyboard-interactive
debug3: remaining preferred: password
debug3: authmethod_is_enabled keyboard-interactive
debug1: Next authentication method: keyboard-interactive
debug2: userauth_kbdint
debug3: send packet: type 50
debug2: we sent a keyboard-interactive packet, wait for reply
debug3: receive packet: type 60
debug2: input_userauth_info_req
debug2: input_userauth_info_req: num_prompts 1
sshpass has no time based handling. If there is a timing issue, it needs to be debugged. A bug report is not the correct venue for that. Feel free to bring this up on the mailing list.