From cea65f6f675f2946d629b7715cd533019a12ff76 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Fri, 2 Jul 2021 11:55:14 +0200 Subject: [PATCH] fix --- pkg/de-p1st-ssh/PKGBUILD | 2 +- pkg/de-p1st-ssh/sshd_config.holoscript | 15 ++++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/pkg/de-p1st-ssh/PKGBUILD b/pkg/de-p1st-ssh/PKGBUILD index 0797e91..5455b87 100644 --- a/pkg/de-p1st-ssh/PKGBUILD +++ b/pkg/de-p1st-ssh/PKGBUILD @@ -2,7 +2,7 @@ _pkgname=ssh _reponame=arch pkgname="de-p1st-$_pkgname" -pkgver=0.0.6 +pkgver=0.0.7 pkgrel=1 pkgdesc="ssh with configuration" arch=('any') diff --git a/pkg/de-p1st-ssh/sshd_config.holoscript b/pkg/de-p1st-ssh/sshd_config.holoscript index 8da8a8c..15887ba 100644 --- a/pkg/de-p1st-ssh/sshd_config.holoscript +++ b/pkg/de-p1st-ssh/sshd_config.holoscript @@ -8,11 +8,16 @@ stdin=$(cat) # assertions echo "$stdin" | grep --quiet '^UsePAM yes$' # -echo "$stdin" | grep --quiet '^#PermitRootLogin\s*$' -echo "$stdin" | grep --quiet '^#PubkeyAuthentication\s*$' -echo "$stdin" | grep --quiet '^#PasswordAuthentication\s*$' -echo "$stdin" | grep --quiet '^#PermitEmptyPasswords\s*$' -echo "$stdin" | grep --quiet '^#X11Forwarding\s*$' +echo "$stdin" | grep --quiet '^#PermitRootLogin\s*$' +! echo "$stdin" | grep --quiet '^PermitRootLogin\s*$' +echo "$stdin" | grep --quiet '^#PubkeyAuthentication\s*$' +! echo "$stdin" | grep --quiet '^PubkeyAuthentication\s*$' +echo "$stdin" | grep --quiet '^#PasswordAuthentication\s*$' +! echo "$stdin" | grep --quiet '^PasswordAuthentication\s*$' +echo "$stdin" | grep --quiet '^#PermitEmptyPasswords\s*$' +! echo "$stdin" | grep --quiet '^PermitEmptyPasswords\s*$' +echo "$stdin" | grep --quiet '^#X11Forwarding\s*$' +! echo "$stdin" | grep --quiet '^X11Forwarding\s*$' sed ' s|^#PermitRootLogin\s*$|PermitRootLogin no|;