Working as root all the time is risky: create a sudo user then lock root.
Create the user
adduser myuser
usermod -aG sudo myuser
Reconnect with that account before continuing:
ssh myuser@YOUR_IP
Disable root password login
Edit the SSH config:
sudo nano /etc/ssh/sshd_config
Set:
PermitRootLogin no
PasswordAuthentication no # only if your SSH keys work!
Then reload:
sudo systemctl reload ssh











