Chroot SFTP via SSH


Edit sshd_config with options below to match with username. Restart to take effect.


Match User userA
  ChrootDirectory /home/userA
  ForceCommand internal-sftp

No comments: