Category Archives: Computer Security

SFTP chroot with write access

I used to use rssh to lock access to SCP/SFTP only for a set of specific users.
However, the latest versions of OpenSSH has build in ChrootDirectory directive but it might not be straight forward as wrong directory permissions would not let to connect and give the folowing error

Write failed: Broken pipe
Couldn't read packet: Connection reset by peer

This can be easily fixed.
Continue reading