I have accidentally typed my password in SSH's interactive username prompt. Are there any log files that I should clear?

  • 1
    Clear your ssh logfile if it exists.I mean your auth.log.
    – karthick87
    Dec 11, 2010 at 20:19

2 Answers 2



Search for "Invalid user"


/var/log/btmp contains, in binary form, a log of the details of failed login attempts.

last -f /var/log/btmp will show you the contents of that file, which will likely include your mistake.

  • lastb is a system defined shortcut for the same.
    – KDN
    Sep 13, 2017 at 13:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .