Subject: bug#75746: 31.0.50; Can't get password promote from plink 0.82

From: Michael Albinus <[email-masked]>
Date: Sun, 26 Jan 2025 10:00:11 +0100

(Sun Shuguang) <[email-masked]> writes:

> Dear,

Hi Shuguang,

> Emacs (31.0.50, UCRT) can't get the promote for password (and user) from plink 0.82 and pre-release 0.83 in Windows. So that Tramp using plink from windows will not work.
>
> - Emacs -q
> - shell (cmd)
> - plink -l username -P 22 -ssh -t 192.168.x.x " env 'TERM=dumb' 'PROMPT_COMMAND=' 'PS1=#$ ' /bin/sh " && exit || exit
>   The shell echo the username and wait and wait.
> - plink -P 22 -ssh -t 192.168.x.x " env 'TERM=dumb' 'PROMPT_COMMAND=' 'PS1=#$ ' /bin/sh " && exit || exit
>   The shell has no echo and wait and wait.
>
> In Tramp, it falls into the loop of waiting for promote of password.

Could you pleas show the output of the two commands in a cmd.exe window?
With and without the "&& exit || exit" tail.

> Best Regards,
> Shuguang

Best regards, Michael.