Alexei Srour <[email protected]> writes:

> Hello Michael,

Hi Alexei,

> 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.
>
> It's a little ambiguous from the SSHD logs whether an OTP prompt is
> being sent or not, with the only tip I know so far is to run ssh with
> the `-vv` flag and inspecting debug messages. I'll keep investigating
> in the meantime if there's a better method.

Thanks for this. The ssh version seems to be recent enough. It is still
not clear to me what happens. It looks, like the request from the sshd
server doesn't reach the client.

Perhaps (likely?) it is a tty issue. How do you start Emacs on your MS
Windows? Have you tried to start from a shell?

> Some extra notes: 
>
> * I ran the same console query as previously in both cases where OTP
>   was enabled and disabled: ./emacs -Q -l
>   C:/Users/name/AppData/Roaming/.emacs.d/elpa/tramp-2.8.0.4/tramp-autoloads.el
>   --eval "(setq tramp-verbose 10 tramp-debug-to-file t)"
>   /scpx:<user>@<ip address>#<port>:~/
> * I have truncated the log that successfully connected to prevent
>   exposing personal files on my server.
> * On the failed connection, it hung as usual and I cancelled with a
>   ^G, this can also be seen in the SSHD trace when the connection is
>   reset by the user.
> * In the SSHD snapshot, I included an example of a successful
>   connection through OTP when using an external terminal not through
>   Emacs.
>
> Hope this proves helpful. Happy to provide more information if needed.

I have tried to install google-authenticator on my Fedora 43 laptop, but
it fails to cooperate. Accessing this laptop via ssh doesn't show the
"Verification code:" prompt. Do you have a short recipe how to do?

> Regards,

Best regards, Michael.

Reply via email to