Check log file for interactive SSH logins

# failed attempt
grep sshd.\*Failed /var/log/auth.log | less

# successful attempts
grep sshd.\*Accepted /var/log/auth.log | less

How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu 16.04

https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-16-04