1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-21 03:02:09 +00:00

added grep to see if ciphers were already added for when rerunning the script

This commit is contained in:
ChiefGyk 2016-07-20 16:46:38 -04:00
parent 6b6bda520a
commit bf8e095b36

View File

@ -220,9 +220,9 @@ APT::Periodic::Verbose "1";
EOF EOF
# Harden SSH and disable weak ciphers # Harden SSH and disable weak ciphers
echo "Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128" >> /etc/ssh/sshd_config grep -q -F "Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128 \
echo "MACs hmac-sha1,umac-64@openssh.com,hmac-ripemd160" >> /etc/ssh/sshd_config MACs hmac-sha1,umac-64@openssh.com,hmac-ripemd160" /etc/ssh/sshd_config || echo "Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128 \
MACs hmac-sha1,umac-64@openssh.com,hmac-ripemd160" >> /etc/ssh/ssh_config
# ### Firewall # ### Firewall