I have the latest OpenSSH, I have a group "members" with 5 users. I need to get SFTP to certain directory, nothing else. I seem to be able to do it with Chroot, but it's not working. Heres my /etc/ssh/sshd_config: Subsystem sftp internal-sftp
Match Group members
ChrootDirectory %h
ForceCommand internal-sftp
AllowTcpForwarding no
My error is this:
connect to address 127.0.0.1 port 22: Connection refused
ssh: connect to host localhost port 22: Connection refused
Couldn't read packet: Connection reset by peer
I'm lost.
connection refused
message, you should read closely about the permissions required for theChrootDirectory
setting. The permissions requirements are very strict.