SSH setting a timeout for the 'password' prompt?
For linux you maybe have the option to workaround with the timeout
command, provided with
"coreutils" from any regular RPMs .
If it's timeout then return code 124
cinacio@jdivm04:~> time timeout 10s ssh cinacio@vulca_5 ; echo $?
cinacio@vulca_5's password:
real 0m10.002s
user 0m0.006s
sys 0m0.002s
124
I discovery this at this question : https://stackoverflow.com/questions/15785832/how-to-make-ssh-command-execution-to-timeout