Windows telnet + controlling local echo from remote

 ̄綄美尐妖づ 提交于 2020-01-07 06:55:12

问题


I have the same problem as How to unsupress local echo but none of the solutions in that thread are desirable.

Specifically, I'm using telnet for communication with a simply Ruby program that requires authentication to connect remotely. When the user is prompted for a password I want to suppress local echo, so I send the password prompt followed by IAC DONT ECHO, then send IAC DO ECHO after receiving a newline.

This method appears to work fine for most telnet clients, but when using windows 'telnet' (Windows XP SP2 version) I get back IAC WONT ECHO and IAC WILL ECHO respectively, but after the password prompt local echo is permanently disabled.

Does anyone know of a work around for this, or will I just have to avoid windows telnet?


回答1:


I don't think I could be accused of Windows bashing if I say there are better alternatives to Windows telnet.

Putty is a popular alternative.



来源:https://stackoverflow.com/questions/1356153/windows-telnet-controlling-local-echo-from-remote

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!