#linux

Add a user: adduser <USER-NAME>
Add it to the group “sudo”: usermod -aG <GROUP-NAME> <USER-NAME>


Disable root ssh login:
Edit the file /etc/ssh/sshd_config


  • Set PermitRootLogin yes to no
  • Set PasswordAuthentiation yes to no


Restart ssh service:
sudo systemctl restart sshd