Operating System - HP-UX
1855943 Members
7865 Online
104107 Solutions
New Discussion

Re: Disable root login thorugh SSH client

 
SOLVED
Go to solution
Sยภเl Kย๓คг
Respected Contributor

Disable root login thorugh SSH client

Hi

How can we disable root login for an ssh login for HPUX 11i.We need to enable the su other than directly login as root.

Thanks and regards
SK
Your imagination is the preview of your life's coming attractions
4 REPLIES 4
Slawomir Gora
Honored Contributor
Solution

Re: Disable root login thorugh SSH client

Hi,

you have to set line in sshd_config file:

PermitRootLogin no
Slawomir Gora
Honored Contributor

Re: Disable root login thorugh SSH client

Hi,

and restart sshd daemon
Ralph Grothe
Honored Contributor

Re: Disable root login thorugh SSH client

You probably know,
the easiest way to restart your sshd without losing your current session is

# kill -1 $(cat /var/run/sshd.pid)
Madness, thy name is system administration
HGN
Honored Contributor

Re: Disable root login thorugh SSH client

Hi

The entry in the sshd config file needs to be set to no
sshd_config

PermitRootLogin no

Rgds

HGN