I wanted to login to a system which uses 2FA token authentication. Unfortunately Emacs does not seem to prompt for the 2FA token and just hangs there until it reaches a timeout call. The ssh mechanism is very simple; public IP, username and key. Once it connects the prompt is also quite standard "Enter your 2FA token:"
Is there anything I need to do/configure in Emacs to be able to obtain the 2FA prompt and introduce the token?
You seem to use Tramp. Since Tramp 2.5 (integrated in Emacs 28), it supports the user option tramp-security-key-confirm-regexp
. Please configure it accordingly.
In case it still doesn't work, set tramp-verbose
to 6, and contact the mailing list [email protected]
.