How To Disable Root Login on Ubuntu 20.04

Опубликовано: 06 Октябрь 2024
на канале: MivoCloud
2,397
241

In this video I will show you how to disable remote access to the Root user profile and how to restore it. We will go through the points - creating a user, granting the user Sudo rights, remote connection to the terminal, depriving the possibility of remote connection to the Root profile

Commands used
Useradd -m -s /bin/bash -c ‘Admin’ username
Passwd username
Usermod -aG sudo username
cd /var/log/
sudo cat auth.log
sudo nano /etc/ssh/sshd_config
sudo systemctl restart sshd