Operating System - HP-UX
1827859 Members
2499 Online
109969 Solutions
New Discussion

Disallow root login via ssh, not working ?

 
SOLVED
Go to solution
Johnny Damtoft
Regular Advisor

Disallow root login via ssh, not working ?

I've just installed 11.31 on Itanium, and after making the server "trusted", i created the /etc/securetty file containing "console".

Why can I still login using the user root, via ssh ??

4 REPLIES 4
Bill Hassell
Honored Contributor
Solution

Re: Disallow root login via ssh, not working ?

ssh has its own set of security settings. Edit the sshd_conf file and look at the comments about root login. Also look at PAM settings. The sshd_conf file is located in the etc directory where your version of ssh is installed:

PermitRootLogin no


Bill Hassell, sysadmin
Johnny Damtoft
Regular Advisor

Re: Disallow root login via ssh, not working ?

Thanks Bill,

What is the purpose of the securetty file then ??

I'm just making the file as i normally do, and it works. But this is the first on 11.31. :P

--
Johnny
Patrick Wallek
Honored Contributor

Re: Disallow root login via ssh, not working ?

securetty control access via telnet and possibly the r* commands.

The securetty man page has details on its function.
Johnny Damtoft
Regular Advisor

Re: Disallow root login via ssh, not working ?


Thanks guys..

--
Johnny