Hi, I am trying to setup chroot + SFTP only access for a user on Debian 6 32-bit.
My problem is that as soon as I insert "ForceCommand internal-sftp" in the Match directive, the SFTP sessions get closed immediately. (match directive is sftpusers' group in my case). I didn't even activate the chroot part for this, I'm only trying to do ForceCommand. Why is this happening and how can I fix it? Here is my full config: >>> AllowUsers root test PermitRootLogin yes Port xxxx Protocol 2 Subsystem sftp internal-sftp Match Group sftpusers ForceCommand internal-sftp >>> Here is my auth.log: Sep 17 22:51:58 ssdkvm sshd[31159]: Accepted password for test from ::1 port 37740 ssh2 Sep 17 22:51:58 ssdkvm sshd[31161]: subsystem request for sftp Sep 17 22:51:58 ssdkvm sshd[31161]: Received disconnect from ::1: 11: disconnected by user Can you tell me why is this happening and how can I fix it? Zsolt