HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
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 )