Ajout : SFTP.
authorJulien Moutinho <julm+heureux-cyclage@autogeree.net>
Tue, 14 Oct 2014 05:46:53 +0000 (07:46 +0200)
committerJulien Moutinho <julm+heureux-cyclage@autogeree.net>
Tue, 14 Oct 2014 05:46:53 +0000 (07:46 +0200)
etc/ssh/sshd_config.m4

index 572c6ad..898dd84 100644 (file)
@@ -29,10 +29,16 @@ RSAAuthentication yes
 RhostsRSAAuthentication no
 ServerKeyBits 768
 StrictModes yes
-Subsystem sftp /usr/lib/openssh/sftp-server
 SyslogFacility AUTH
 TCPKeepAlive yes
 UsePAM yes
 UsePrivilegeSeparation yes
 X11DisplayOffset 10
 X11Forwarding no
+
+Subsystem sftp internal-sftp
+Match Group sftp
+       AllowTCPForwarding no
+       ChrootDirectory %h
+       ForceCommand internal-sftp
+       X11Forwarding no