To ssh, the server I am connecting to needs a password followed by an RSA-like key.
It goes:
Password:
Verification code:
I've read Tramp with 2-factor authentication, but it does not solve the problem completely.
I've appended "Verification code" into tramp-password-prompt-regexp.
But what happens when I try to login is that I get an opportunity to put in my password, and then I see:
Tramp: Sending Password
Tramp: Sending Verification code
Tramp: Sending Password
Tramp: Sending Verification code
Tramp: Sending Password
Tramp: Sending Verification code
Tramp: Waiting for prompts from remote shell...failed
Before it eventually fails. I feel like it's treating Verification code and Password as one and the same, and instead of prompting me for a Verification code, it just goes ahead and sends the password.
How do I get tramp to prompt a second time for the verification code? I want it to collect a second read-string
from the user or something.
(setq password-cache nil)
. – Michael Albinus Oct 21 '15 at 19:29unix_listener: "/var/folders/jy/__string__/T/tramp.__string__.__username@domain__:22.__string__" too long for Unix domain socket
– bernie Oct 21 '15 at 19:45