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|;