X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage3%2Fpkg%2Fopenssh;h=58707cee4c9bcc9927a3bffa31405f0662dc4ffd;hb=07ffca36a11350048d0e8f4a64b4ef86509df428;hp=726639d8acc8ada3425898edb97820e4b2c8c95c;hpb=9e3f8101a7e4d974db8e9afeb9c90c13a43ae8d7;p=hvlinux.git diff --git a/stage3/pkg/openssh b/stage3/pkg/openssh index 726639d..58707ce 100644 --- a/stage3/pkg/openssh +++ b/stage3/pkg/openssh @@ -21,10 +21,13 @@ 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 sed -i -e "s!^[#]*MaxAuthTries.*!MaxAuthTries 3!g" /etc/ssh/sshd_config