From 7fa83c2fe79fd2f3f32885707591637f559401a3 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 27 Jun 2018 09:55:09 +0100 Subject: [PATCH] aws: Enable SSH on the first start Signed-off-by: Michael Tremer --- src/initscripts/helper/aws-setup | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/initscripts/helper/aws-setup b/src/initscripts/helper/aws-setup index 791bbb2512..d79ac2a764 100644 --- a/src/initscripts/helper/aws-setup +++ b/src/initscripts/helper/aws-setup @@ -157,15 +157,15 @@ import_aws_configuration() { fi done - # Enable SSH - touch /var/ipfire/remote/enablessh - chown nobody:nobody /var/ipfire/remote/enablessh - - # Enable SSH key authentication - sed -e "s/^ENABLE_SSH_KEYS=.*/ENABLE_SSH_KEYS=on/" -i /var/ipfire/remote/settings - # Actions performed only on the very first start if [ ! -e "/var/ipfire/main/firstsetup_ok" ]; then + # Enable SSH + touch /var/ipfire/remote/enablessh + chown nobody:nobody /var/ipfire/remote/enablessh + + # Enable SSH key authentication + sed -e "s/^ENABLE_SSH_KEYS=.*/ENABLE_SSH_KEYS=on/" -i /var/ipfire/remote/settings + # Firewall rules for SSH and WEBIF ( echo "1,ACCEPT,INPUTFW,ON,std_net_src,ALL,ipfire,RED1,,TCP,,,ON,,,cust_srv,SSH,,,,,,,,,,,00:00,00:00,,AUTO,,dnat,,,,,second" -- 2.39.2