]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
aws: Disable SSH password authentication by default
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 30 Jul 2018 15:54:50 +0000 (16:54 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 30 Jul 2018 15:54:50 +0000 (16:54 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/helper/aws-setup

index e16678339ace508afde72f15c8a8741d52f4ce58..122e5a31ddd4b4ec778884a39dc948ed27ab9ddd 100644 (file)
@@ -231,6 +231,9 @@ import_aws_configuration() {
                # Enable SSH
                sed -e "s/ENABLE_SSH=.*/ENABLE_SSH=on/g" -i /var/ipfire/remote/settings
 
+               # Disable SSH password authentication
+               sed -e "s/^ENABLE_SSH_PASSWORDS=.*/ENABLE_SSH_PASSWORDS=off/" -i /var/ipfire/remote/settings
+
                # Enable SSH key authentication
                sed -e "s/^ENABLE_SSH_KEYS=.*/ENABLE_SSH_KEYS=on/" -i /var/ipfire/remote/settings