Check if a restart is needed

needs-restarting -r

will say if the system needs to be restarted.


fail2ban-client status

Check fail2ban - Checks the status of the service

fail2ban-client status sshd - Checks the status of the sshd service

fail2ban-client unban 192.168.56.1 - unbans 192.168.56.1