X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Fssh%2Fsshd_config.m4;h=898dd84a0f0081acdb8db7085f8bf248dbfe5773;hb=8e632f43794c0db9d02a4e3df0ca2eaaac09def2;hp=6c7298e153544afd7d50f21dea84b976d5286403;hpb=6647e7fb851e2dbe5a5c7ec60358f7371bf17183;p=lhc%2Fateliers.git diff --git a/etc/ssh/sshd_config.m4 b/etc/ssh/sshd_config.m4 index 6c7298e..898dd84 100644 --- a/etc/ssh/sshd_config.m4 +++ b/etc/ssh/sshd_config.m4 @@ -17,7 +17,7 @@ KeyRegenerationInterval 3600 ListenAddress 0.0.0.0:22 LogLevel INFO LoginGraceTime 120 -MaxAuthTries 3 +MaxAuthTries 5 PasswordAuthentication no PermitEmptyPasswords no PermitRootLogin yes @@ -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