My laptop's keyboard is failing and certain keys sometimes work, and sometimes don't. When I type a password on a GUI, I realize that the pressed key has not worked, since I can count the keystrokes looking at something akin to ****** in the password field. That gives me the chance of re-pressing the key, until it works (which can mean between 1-3 presses). The same applies to typing a normal text.
When typing my password in the command-line (using su
, for example), however, I only realize that some key has not worked after I press enter and get a Authentication failure
message.
Is there a safe way of dealing with it? Just typing the password in plain text and copy-and-pasting it seems not to be the case.
su
.