Re: Emacs Tramp hangs with timeout when connecting to server with two-factor authentication from a Windows 11 machine via sshx/scpx

Joel Reicher <[email protected]> Sun, 23 Nov 2025 15:34:08 +1100
Newsgroups gmane.emacs.tramp
Message-ID <[email protected]>
Michael Albinus <[email protected]> writes:

> Joel Reicher <[email protected]> writes:
>
>>> As per `ssh -V`, I'm running `OpenSSH_for_Windows 8.6p1, 
>>> LibreSSL 3.4.3`. To help answer questions about whether Tramp 
>>> is receiving a response from ssh, I've attached traces of a 
>>> successful connection when OTP is disabled, then a failed 
>>> connection when OTP is enabled, as well as a snapshot of my 
>>> SSHD log showing the incoming connections.
>>
>> I should probably jump in at this point and say I'm in a 
>> position to test with the MS-supplied version of OpenSSH also.
>>
>> Not so long ago I "simplified" my setup to use this instead of 
>> plink, but with authorized keys so as to avoid some of the 
>> problems reported on this thread. It would be great to figure 
>> this out, so please let me know if there's anything I should 
>> try.
>
> I have the impression, that the sshx connection on MS Windows 
> refuses to show sshd requests. Could you confirm this? Does this 
> ask you for a password, if you have configured the remote sshd 
> to do so?

If I try to do something like /sshx:foo@bar: where foo is a user 
that doesn't exist, Emacs hangs. Doing "ssh foo@bar" in a Windows 
terminal gets to the password prompt as expected though.

> Are you able to install the google authenticator on the remote 
> side, and to use it with Tramp's sshx method from MS Windows?

I have no experience with installing google authenticator on a 
server, but I'll look into doing this.

Cheers,

        - Joel