From 0cf70cae66593ce985d22b05d0be95c5b43b0565 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 30 Jul 2018 16:54:50 +0100 Subject: [PATCH] aws: Disable SSH password authentication by default Signed-off-by: Michael Tremer --- src/initscripts/helper/aws-setup | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/initscripts/helper/aws-setup b/src/initscripts/helper/aws-setup index e16678339a..122e5a31dd 100644 --- a/src/initscripts/helper/aws-setup +++ b/src/initscripts/helper/aws-setup @@ -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 -- 2.39.5