I accidentally typed my password into bash command line, mistaking the Last login: ...
line for Wrong password
(I was in a hurry). What do I do to cover my trace?
What I did was editing .bash_history
and deleting the offending line (had to relogin once to see the password appear in the file so I could delete it, and relogin again to see it disappear from the history available under UPARROW key).
Is there any other place where the command history could be saved? The system is CentOS 6.5.
/dev/null
.ssh-keygen -f id_rsa -p
.