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

From: 孙曙光(Sun Shuguang) <[email-masked]>
Date: Mon, 27 Jan 2025 01:35:40 +0000

> 
> 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.
> 

For command with `-l username`, the output is ` [email-masked]'s password:`.
For command without `-l username` the output is ` login as:`.

It is the same with or without the "&& exit || exit" tail.

> > Best Regards,
> > Shuguang
> Best regards, Michael.

BR
Shuguang