|
@@ -161,12 +161,12 @@ fi
|
|
[ -f /etc/ssh/sshd_config ] && sed -i "s/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g" /etc/ssh/sshd_config;
|
|
[ -f /etc/ssh/sshd_config ] && sed -i "s/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g" /etc/ssh/sshd_config;
|
|
|
|
|
|
# SSH Ciphers
|
|
# SSH Ciphers
|
|
-[ -f /etc/ssh/sshd_config ] && sed -i "/^KexAlgorithms/d" /etc/ssh/sshd_config;
|
|
|
|
-echo "KexAlgorithms [email protected],ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256" >>/etc/ssh/sshd_config;
|
|
|
|
-[ -f /etc/ssh/sshd_config ] && sed -i "/^Ciphers/d" /etc/ssh/sshd_config;
|
|
|
|
-echo "Ciphers [email protected],[email protected]" >>/etc/ssh/sshd_config;
|
|
|
|
-[ -f /etc/ssh/sshd_config ] && sed -i "/^MACs/d" /etc/ssh/sshd_config;
|
|
|
|
-echo "MACs [email protected],[email protected],[email protected],hmac-sha2-512,hmac-sha2-256,[email protected]" >>/etc/ssh/sshd_config;
|
|
|
|
|
|
+#[ -f /etc/ssh/sshd_config ] && sed -i "/^KexAlgorithms/d" /etc/ssh/sshd_config;
|
|
|
|
+#echo "KexAlgorithms [email protected],ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256" >>/etc/ssh/sshd_config;
|
|
|
|
+#[ -f /etc/ssh/sshd_config ] && sed -i "/^Ciphers/d" /etc/ssh/sshd_config;
|
|
|
|
+#echo "Ciphers [email protected],[email protected]" >>/etc/ssh/sshd_config;
|
|
|
|
+#[ -f /etc/ssh/sshd_config ] && sed -i "/^MACs/d" /etc/ssh/sshd_config;
|
|
|
|
+#echo "MACs [email protected],[email protected],[email protected],hmac-sha2-512,hmac-sha2-256,[email protected]" >>/etc/ssh/sshd_config;
|
|
|
|
|
|
|
|
|
|
# Timezone
|
|
# Timezone
|