I want to allow a SFTP limited user to access and change scripts in specific root directory called
/root/scripts with SSH access disabled. I am having a hard time finding any solutions.
The main server is executing these scripts so directory must stay in root folder.
Also setting user
bin/false disables somehow sftp access too, nothing happens when tries to login. EDIT: using shell /usr/lib/openssh/sftp-server works ideal.
Subsystem sftp internal-sftp Match User specops ChrootDirectory /root/scripts AllowTCPForwarding no X11Forwarding no ForceCommand internal-sftp
Also this is executed:
chown specops "/root/scripts" usermod -d "/root/scripts" specops
Now connecting with specops I find myself in /.. directory without any directories listed
Running Debian 6 E.G user specops