linux:chroot_sftp
Table des matières
chroot pour un utilisateur sftp
Instructions
- Editer le fichier sshd_conf
nano /etc/ssh/sshd_config
Et rajouter après UsePam=yes
Match User **UTILISATEUR** ChrootDirectory /path AllowTCPForwarding no X11Forwarding no ForceCommand internal-sftp
- Changer les droits sur le dossier
chmod 755 /path -R chown root:root /path -R
- Redémarrer le service
service ssh restart
Sources
linux/chroot_sftp.txt · Dernière modification : de 127.0.0.1
