ubuntu ssh logs code example
Example 1: ubuntu check ssh login log
grep 'sshd' /var/log/auth.log
Example 2: ubuntu server login logs
sudo less /var/log/auth.log
or
last
grep 'sshd' /var/log/auth.log
sudo less /var/log/auth.log
or
last