cancel
Showing results for 
Search instead for 
Did you mean: 

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
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 )