Operating System - HP-UX
1827728 Members
2799 Online
109968 Solutions
New Discussion

limit root user ssh while permit other users

 
SOLVED
Go to solution
huaxiang
Frequent Advisor

limit root user ssh while permit other users

how to forbid root user ssh login while permit other users
3 REPLIES 3
Patrick Wallek
Honored Contributor
Solution

Re: limit root user ssh while permit other users

In the sshd_config file set the PermitRootLogin option to NO.

# grep PermitRoot sshd_config
PermitRootLogin no



On my server this file is in /etc/opt/ssh. It may be different on your server depending on the version of ssh you have installed.
Ganesan R
Honored Contributor

Re: limit root user ssh while permit other users

Hi,

You can put the below entry in sshd_config file.

PermitRootLogin no

If you want to define the root login terminals then use /etc/securetty file
Best wishes,

Ganesh.
Ganesan R
Honored Contributor

Re: limit root user ssh while permit other users

Hi,

Forgot to mention. If it is HP ported SSH the location of sshd_config would be

/opt/ssh/etc/sshd_config

Best wishes,

Ganesh.