I changed this line
-                (tramp-login-args           (("%h") ("%p") ("%n")))
to this one
-                (tramp-login-args           (("%h") ("%p") ("2>/dev/null")))
to apply the patch
 
 
08.09.2021, 10:13, "Michael Albinus" <michael.albinus@gmx.de>:

Bad Blue Bull <ibmbull@yandex.ru> writes:

Hi,
 

 Trying 192.168.0.141...
 Connected to 192.168.0.141.
 Escape character is '^]'.
 Microsoft (R) Windows (TM) Version 5.00 (Build 2195)
 Welcome to Microsoft Telnet Service
 Telnet Server Build 5.00.99206.1
 login:


Looks correct to me. And none of this except the first line is in the
traces. So we need to run telnet from Tramp w/o stderr
redirection. Could you pls apply the appended patch to tramp-sh.el?

Since this requires a regeneration of tramp-loaddefs.el, pls recompile
Emacs via "make -C lisp autoloads compile". Rerun your test with
tramp-verbose set to 10, and show the traces.

Best regards, Michael.