Ubuntu add user & disable root

First of all lets add user

adduser maximus

enter password and confirm information, now add user to sudoers

gpasswd -a maximus sudo

now open for editing ssh config

sudo nano /etc/ssh/sshd_config

find

PermitRootLogin yes

and change it to

PermitRootLogin no

  Restart ssh service and your done.

service ssh restart

Leave a Reply

Your email address will not be published. Required fields are marked *