On Mon, Oct 31, 2022 at 7:27 AM 李安安 <[email protected]> wrote: > Hello, > When I use guacd,have the problem. > > Use guacd connect device, most of them succeed, a few fail.The “connect” > args: > > {"hostname":"******","username":"admin","password":"*******","username-regex":"Username:","password-regex":"Password:","backspace":"8","port":23,"font-size":"18","color-scheme":"gray-black"} > > The error msg: > > Warning: Telnet is not a secure protocol, and it is recommended to use > Stelnet. > Login authentication > > Username: > Error: The username times out. > Username: > Error: The username times out. > Username: > Error: The username times out. > > There may be something wrong with this particular Telnet server and its handling of input and/or its handling of the received username. When connecting via Telnet and provided credentials, Guacamole will:
1) Send the username via the standard mechanism for this provided by Telnet (the "USER" environment variable, set via "NEW-ENVIRON"). If the Telnet server supports this, the username regex will be ignored as unnecessary. a) If the Telnet server doesn't support this, wait for the username prompt to appear by searching for the username regex. b) Once a string matching the username regex appears, send the username and one newline. 2) Wait for the password prompt to appear by searching for the password regex. 3) Once a string matching the password regex appears, send the password and one newline. Your example output shows at least three newlines, but Guacamole will not send that many newlines on its own while doing this. It will send just one after the username (if the Telnet server doesn't support the standard mechanism for receiving the username) and one after the password, so usually one and at most two. What do you see in the guacd logs after enabling debug-level logging? - Mike
