From 8d93df336817c07637e30ca4be015918df32b812 Mon Sep 17 00:00:00 2001 From: gashapwn Date: Tue, 2 Mar 2021 16:53:54 +0000 Subject: [PATCH] provision.pl - adjust root login regex --- perl-script/provision.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-script/provision.pl b/perl-script/provision.pl index edaab94..35379e3 100644 --- a/perl-script/provision.pl +++ b/perl-script/provision.pl @@ -169,7 +169,7 @@ system("rcctl enable haproxy"); system("rcctl start haproxy"); # Disable root login -system("sed -i -e 's/^[^#]*PermitRootLogin.+$/PermitRootLogin no/' /etc/apache2/httpd2.conf"); +system("sed -i -e 's/^[^#]*PermitRootLogin.*\$/PermitRootLogin no/' /etc/ssh/sshd_config"); printf("\n\nInstall complete\n"); printf("==================================================\n");