X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage3%2Fcis-openssh;h=1e2d5e2b8fc8bc1994cf81d9ffa6b0a4c34be809;hb=f41e274186ffbed8f6bdc4d44da23758c83f1bb9;hp=078ea388b4ba11e8f98c3b84a0ffa685e7c60fe2;hpb=be41960e19c9daee738916df4138559a262ca34a;p=hvlinux.git diff --git a/stage3/cis-openssh b/stage3/cis-openssh index 078ea38..1e2d5e2 100755 --- a/stage3/cis-openssh +++ b/stage3/cis-openssh @@ -40,8 +40,8 @@ sed -i -e "s!^#PermitRootLogin.*!PermitRootLogin no!g" /etc/ssh/sshd_config # Enabling X11 forwarding sed -i -e "s!^#X11Forwarding.*!X11Forwarding yes!g" /etc/ssh/sshd_config -# Setting MaxAuthTries to 1 -sed -i -e "s!^#MaxAuthTries.*!MaxAuthTries 1!g" /etc/ssh/sshd_config +# Setting MaxAuthTries to 2 +sed -i -e "s!^[#]*MaxAuthTries.*!MaxAuthTries 3!g" /etc/ssh/sshd_config install -v -m740 ${SCRDIR}/bootscripts/sshd /etc/rc.d/init.d bootscript_add_rc3 sshd 25 70