I’ve found some posts on the internet about how to check your logs with regards to login attempts or to simply put, checking logs so that you would know if someone is trying to access your Linux machine. Below is the command.
grep -ir ssh /var/log/* grep -ir breakin /var/log/* grep -ir security /var/log/*