In /etc/sshd/sshd_config, ensure the following line exists: PermitRootLogin no
You'll have to restart sshd, but afterwards, root won't be able to login via sshd. /etc/securetty controls which ttys root can come in on. It should be set as you want it by default in RedHat (I believe). There should also be a man page for securetty. Jason --- horst <[EMAIL PROTECTED]> wrote: > How do I disable remote login (ssh) for root, and > only allow 'su' or > console login. > > It's a Red Hat box: > [EMAIL PROTECTED] mail]# cat /proc/version > Linux version 2.4.20-8 > ([EMAIL PROTECTED]) (gcc version > 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #1 Thu Mar > 13 16:42:56 EST 2003 > [EMAIL PROTECTED] mail]# > > Thanks ......................... Horst > _______________________________________________ > EuG-LUG mailing list > [EMAIL PROTECTED] > http://mailman.efn.org/cgi-bin/listinfo/eug-lug __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ _______________________________________________ EuG-LUG mailing list [EMAIL PROTECTED] http://mailman.efn.org/cgi-bin/listinfo/eug-lug
