Re: disabling root access from ssh login

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 21, 2003 at 10:44:39AM -0800, Bruce Douglas wrote:
> i tried the following with no luck:
> 
> vi to /etc/ssh/ssh_config and added the line:
> 
> PermitRootLogin no
> 
> i then restarted with
> /etc/rc.d/init.d/sshd restart
> 
> i can still login as root...

Right change, wrong file.  You need to make this change in the
"sshd_config" file (as opposed to "ssh_config")  Actually, the stub shoud
PermitRootLogin should already be in the file, so you can just uncomment
the line and change the "yes" at the end to "no" and restart sshd.

"ssh_config" is utilized to configure client ssh usage.

- jkt



-- 
Psyche-list mailing list
Psyche-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux