Add sudoer and Disable Root Login Access in Ubuntu 18.04
Create a New Sudo User
$ adduser <username>
$sudo adduser <username> sudo
disable root login.
/etc/ssh/sshd_config
:
PermitRootLogin no
and the restart the ssh service
sudo service ssh restart
How to Disable Root Login Access in Ubuntu 18.04
If you want to disable root account login in your Ubuntu system then expire the password by entering the following command.