1833870 Members
1676 Online
110063 Solutions
New Discussion

Re: ssh config file

 
Jay Cantwell
Regular Advisor

ssh config file

I am trying to set up ssh NOT to allow root logins. I have put the PermitRootLogin no entry into both the sshd_config and the ssh_config files. I am still capable of logging in as root. What did I miss ?

Jay
3 REPLIES 3
Hemmetter
Esteemed Contributor

Re: ssh config file

Hi Jay,

restart sshd?


Rgds
HGH
BPatrick
Trusted Contributor

Re: ssh config file

Have you tried adding the root user to DenyUsers in the sshd_config file?
Borislav Perkov
Respected Contributor

Re: ssh config file

Hi Jay,

Restart ssh daemon. You can do it also with
cat /var/run/sshd.pid
and than
kill -1

Regards,
Borislav