Update nasbeery2
This commit is contained in:
parent
d614abb106
commit
4e7a7e53c4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user