X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage3%2Fpkg%2Fopenssh;h=cc1854e20905e6167109fb411ba6daea82a92aac;hb=75d444dea699fdfdd1e2994a2991999a1d48d78d;hp=726639d8acc8ada3425898edb97820e4b2c8c95c;hpb=9e3f8101a7e4d974db8e9afeb9c90c13a43ae8d7;p=hvlinux.git diff --git a/stage3/pkg/openssh b/stage3/pkg/openssh index 726639d..cc1854e 100644 --- a/stage3/pkg/openssh +++ b/stage3/pkg/openssh @@ -21,12 +21,15 @@ hvconfig_pre() hvbuild_post() { # Disabling root logins - sed -i -e "s!^#PermitRootLogin.*!PermitRootLogin no!g" /etc/ssh/sshd_config + sed -i -e "s!^#\(PermitRootLogin\).*!\1 no!g" /etc/ssh/sshd_config # Enabling X11 forwarding - sed -i -e "s!^#X11Forwarding.*!X11Forwarding yes!g" /etc/ssh/sshd_config + echo "XAuthLocation /usr/bin/xauth" >> /etc/ssh/sshd_config + sed -i -e "s!^#\(X11Forwarding\).*!\1 yes!g" /etc/ssh/sshd_config + sed -i -e "s!^#\(ForwardAgent\).*!\1 yes!g" /etc/ssh/ssh_config + sed -i -e "s!^#\(ForwardX11\).*!\1 yes!g" /etc/ssh/ssh_config - # Setting MaxAuthTries to 2 + # Setting MaxAuthTries to 3 sed -i -e "s!^[#]*MaxAuthTries.*!MaxAuthTries 3!g" /etc/ssh/sshd_config install -v -m740 ${SCRDIR}/bootscripts/sshd /etc/rc.d/init.d