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
Security-Enhanced Linux (SELinux) is a Linux feature that provides the mechanism for supporting access control security policies.But SELinux can sometimes...
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