If the user realises that they have accidentally provided the wrong username when using the shell with plain --password/-p to connect and prompt for the password, a very natural reaction is to hit Ctrl-C to cancel the connection attempt, so that the user can re-run the shell with the correct username.
However, if Ctrl-C is typed while the shell is prompting for a password, the terminal is left in non-echo mode, which messes up the display from that point onwards. The expected behaviour is for the terminal mode to be normal whenever the shell exits, including if it is killed while prompting for a password.
The workaround is the normal one in this situation, ie. the user must (blindly) type stty echo<enter> or stty sane<enter> or reset<enter>.
- related to
-
SERVER-764 All tools (including shell) that take -p should allow it to be blank and do password input
- Closed