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:
parent
6b6bda520a
commit
bf8e095b36
@ -220,9 +220,9 @@ APT::Periodic::Verbose "1";
|
||||
EOF
|
||||
|
||||
# Harden SSH and disable weak ciphers
|
||||
echo "Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128" >> /etc/ssh/sshd_config
|
||||
echo "MACs hmac-sha1,umac-64@openssh.com,hmac-ripemd160" >> /etc/ssh/sshd_config
|
||||
|
||||
grep -q -F "Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128 \
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user