Server SSH login history with a list of the ip connections

The following command will show the last 20 connections to your server via SSH.

last -20

Some connection could be invisible if a hacker use a backdoor, or an exploit.

You can check that in auth.log and kern.log (/var/log).