$ sudo apt update

$ sudo apt upgrade

$ sudo ufw enable

$ sudo ufw allow ssh

$ adduser newuser

$ usermod -aG sudo newuser
Add newuser to sudo user group.

$ sudo vim /etc/ssh/sshd_config
Find line with string PermitRootLogin yes.
Replace yes with value no.