mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-23 01:16:04 +01:00
fix
This commit is contained in:
parent
5706727e8c
commit
cea65f6f67
@ -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')
|
||||
|
@ -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|;
|
||||
|
Loading…
Reference in New Issue
Block a user