Added support TOTP
Brought to you by:
thesun
Hello.
This patch will add functionality to support TOTP when connecting to the server via SSH if the server requests the code.
Added two arguments:
-t TOTP Provide TOTP as argument -T prompt Which string should sshpass search for to detect a TOTP prompt
Example:
./sshpass -p *** -t *** ssh _host_ w ......
Also added support for the Ansible prompt. The final version of the patch in the attachment:
Last edit: Denis Khalturin 2021-06-10
Also added support for enrty password attempts
See discussion in the mailing list
https://sourceforge.net/p/sshpass/mailman/message/37318911/