Pro tips - kdaisho/Blog GitHub Wiki
Here's a list of useful tips when you ssh to your server.
sudo !!: Executes the previous command with sudo permissionheadprints the first 10 lines of filetailprints the last 10 lines of filetail -f /var/log/auth.logprints the last lines ofauth.logand it updates if new log is created. So you can watch all login attempts in real time.