Added support for TOTP password prompts, as used by google-authenticator-libpam

pull/999/merge^2
Marius Burz 3 years ago
parent 330375be32
commit 9ffb309e20

@ -28,6 +28,7 @@ v0.3.4.dev0
resource leaks. resource leaks.
* :gh:issue:`659` Removed :mod:`mitogen.compat.simplejson`, not needed with Python 2.7+, contained Python 3.x syntax errors * :gh:issue:`659` Removed :mod:`mitogen.compat.simplejson`, not needed with Python 2.7+, contained Python 3.x syntax errors
* :gh:issue:`983` CI: Removed PyPI faulthandler requirement from tests * :gh:issue:`983` CI: Removed PyPI faulthandler requirement from tests
* :gh:issue:`998` SSH: Added support for TOTP password prompts (i.e. 'Verification code: '), as used by google-authenticator-libpam
v0.3.3 (2022-06-03) v0.3.3 (2022-06-03)
------------------- -------------------

@ -66,8 +66,12 @@ hostkey_failed_msg = (
) )
# sshpass uses 'assword' because it doesn't lowercase the input. # sshpass uses 'assword' because it doesn't lowercase the input.
# 'password': standard password prompt
# 'verification code': TOTP prompt(as used by e.g. google-authenticator-libpam)
# These should also match 'password & verification code' for password and TOTP
# prompt (as used by e.g. google-authenticator-libpam)
PASSWORD_PROMPT_PATTERN = re.compile( PASSWORD_PROMPT_PATTERN = re.compile(
b('password'), b('(password|verification code)'),
re.I re.I
) )

Loading…
Cancel
Save