Operating System - HP-UX
1751732 Members
5270 Online
108781 Solutions
New Discussion юеВ

Re: root login in ssh and sftp

 
AbhilashPaul
Advisor

root login in ssh and sftp

how to disable root logging through ssh at the same time root logging through sftp has to be enabled..... Any IDea?
2 REPLIES 2
Taifur
Respected Contributor

Re: root login in ssh and sftp

Hi Paul,

You can do it as follows,

/opt/ssh/etc/sshd_config
#PermitRootLogin yes
PermitRootLogin no

Then stop and restart SSH.

# /sbin/init.d/secsh stop

# /sbin/init.d/secsh start


http://h30097.www3.hp.com/docs/ssh/ssh32/MAN/MAN4/0002____.HTM

For sftp you can do it from sam.

Rgds//
Taifur
AbhilashPaul
Advisor

Re: root login in ssh and sftp

pls send me the path in sam, to enable root loggin , ( for sftp )