What is the command to list all IPs that successfully logged in an Linux server via SSH?

cat /var/log/secure|grep -E "Accepted"