terminal does not respect ECHO setting, resulting in displaying passwords on screen when using a slow remote connection #203388
Closed
Description
opened on Jan 24, 2024
Does this issue occur when all extensions are disabled?: No
- VS Code Version: 1.85.1
- OS Version: Debian testing
Steps to Reproduce:
- Create a remote SSH connection, to a machine with significant latency.
- Open interactive terminal.
- Enter a command that prompts for a password, such as
ssh-add
with a passphrase orsudo -s
.
Expected result:
- Password is not echoed to the screen.
Actual result:
- Password is echoed to the screen temporarily, until remote responds to the keypresses, then password disappears again.
Presumably the interactive terminal is not correctly processing and respecting the ECHO
terminal attribute that is intended to disable keyboard echo in circumstances such as this.
Perhaps respecting that attribute in general would be problematic, but maybe it should at least be respected when the current line contains words such as "password" or "passphrase"?
Activity