3. Now restart sshd daemon
[root@kalwa1 ~]# service sshd restart Stopping sshd: [ OK ] Starting sshd: [ OK ]
4. Now if you tried to login to secure server other than root system responds with “Access denied” message:
Pages: 1 2
Platform for learning UNIX & LINUX technologies
This video will teach you How to update to ubuntu 18.04 from 16.04 or 17.10.
Never ever allow root login … that’s the reason why you should set
PermitRootLogin No
Create a unpriviliged user and set
AllowUser to this unpriviliged account!
Cheers,
Lars
…and make sure you comment out his line “PermitRootLogin no” or set to “PermitRootLogin yes” 🙂
don’t allow root login, enable public key auth, disable password login, as long as you keep the private key private, you’re most likely secure