Hi there,
I wish to set up a server as SFTP using RSA-KEY and Chroot.
My "/etc/ssh/sshd_config" file has the following configuration:
Quote:
Match Group sftp_group
X11Forwarding no
AllowTCPForwarding no
ChrootDirectory /var/www/html/XXX
ForceCommand internal-sftp
|
it is not working but if I modify the above for that it works:
Quote:
Match Group sftp_group
X11Forwarding no
AllowTCPForwarding no
ChrootDirectory /home
ForceCommand internal-sftp
|
So, my configuration is fine less this, it seems that if I change the ChrootDirectory for another different directory than /home doesn't work.
The user who try to sftp to /var/www/html/XXX has the right permission on /var/www/html/XXX.
Any suggestion?
Thanks