See All Failed or Successful SSH Login Attempts

To list all failed SSH login attempts:

 cat /var/log/secure | grep 'sshd.*Failed'

To list all successful SSH login attemps:

 cat /var/log/secure | grep 'sshd.*opened'

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *