Disbaling ssh password authentication by default (Closes: #741678).
authorDaniel Baumann <mail@daniel-baumann.ch>
Sun, 27 Apr 2014 10:12:51 +0000 (12:12 +0200)
committerDaniel Baumann <mail@daniel-baumann.ch>
Sun, 27 Apr 2014 10:12:51 +0000 (12:12 +0200)
components/1160-openssh-server

index 5eab214..0664ae4 100755 (executable)
@@ -35,6 +35,8 @@ Config ()
                fi
        done
 
+       sed -i -e 's|#\(PasswordAuthentication\) yes|\1 no|' /etc/ssh/sshd_config
+
        case "${_SSH}" in
                true)
                        # Creating state file