December 2018
Beginner
826 pages
22h 54m
English
Some distributions deny root login by default, and this is widely considered a good idea. Here, we have a user (vagrant) that we can use to get around so that we don't need to log in as root.
Find the line with PermitRootLogin:
#LoginGraceTime 2m#PermitRootLogin yes#StrictModes yes
Change it to no:
#LoginGraceTime 2mPermitRootLogin no#StrictModes yes
Restart the SSH daemon:
[vagrant@centos2 ~]$ sudo systemctl restart sshd
Read now
Unlock full access