From 4e7a7e53c4c231ff1b9aae665ab6829964e569fb Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Fri, 25 Feb 2022 23:03:21 +0100 Subject: [PATCH] Update nasbeery2 --- nasbeery2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nasbeery2 b/nasbeery2 index 1cbf863..6a9da04 100644 --- a/nasbeery2 +++ b/nasbeery2 @@ -139,7 +139,7 @@ sudo mv -f /etc/ssh/moduli.safe /etc/ssh/moduli echo "Restrict supported key exchange, cipher, and MAC algorithms" echo -e "\n# Restrict key exchange, cipher, and MAC algorithms, as per sshaudit.com\n# hardening guide.\nKexAlgorithms curve25519-sha256,curve25519-sha256@libssh.org,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha256\nCiphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr\nMACs hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,umac-128-etm@openssh.com\nHostKeyAlgorithms ssh-ed25519,ssh-ed25519-cert-v01@openssh.com,sk-ssh-ed25519@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,rsa-sha2-256,rsa-sha2-512,rsa-sha2-256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com" | sudo tee -i /etc/ssh/sshd_config.d/ssh-audit_hardening.conf -if [[ $(zfs list $ZPOOL/$SHARE > /dev/null 2&>1) -gt 0 ]] ; then +if [ ! $(zfs list $ZPOOL/$SHARE) ] ; then echo "Creating $ZPOOL/$SHARE" sudo zfs create -o compression=lz4 $ZPOOL/$SHARE fi