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
DNS server configuration Please select 720p HD quality in setting for better quality of the video log visualization. https://www.youtube.com/watch?v=_W0wRn2GaYk&t=869s
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