Operating System - HP-UX
1751739 Members
5882 Online
108781 Solutions
New Discussion юеВ

How to configure the chroot directory while configure SFTP in HP-UX 11.31?

 
SIMBU12
Occasional Contributor

How to configure the chroot directory while configure SFTP in HP-UX 11.31?

Hello Team,

I configured SFTP in hp-ux and also set chroot directory in the sshd_config file.I am able to connect SFTP server using winscp and filezilla and able to seen my present directory.could you please help me out to block the / remaining folders that won't able to access by the SFTP user.

This is my current config of SFTP

#Subsystem       sftp    internal-sftp
#Match User sftppipaa
#ChrootDirectory /usr/sap/
#ForceCommand internal-sftp
#AllowTcpForwarding no

Thanks in Advance.

Regards,

Simbu

2 REPLIES 2
Bill Hassell
Honored Contributor

Re: How to configure the chroot directory while configure SFTP in HP-UX 11.31?

 

The setup for chroot is fairly complicated.
Here is a document that outlines the procedure:

https://support.hpe.com/hpsc/doc/public/display?docId=c01799530



Bill Hassell, sysadmin
Steven Schweda
Honored Contributor

Re: How to configure the chroot directory while configure SFTP in HP-UX 11.31?

> This is my current config of SFTP
>
> #Subsystem       sftp    internal-sftp
> #Match User sftppipaa
> #ChrootDirectory /usr/sap/
> #ForceCommand internal-sftp
> #AllowTcpForwarding no

   "#" is the comment delimiter in that file.  Did you use actual
directives in the file, or only these comments?