|
@@ -271,10 +271,7 @@ function configure_ssh {
|
271
|
271
|
echo 'Ciphers aes256-ctr,aes128-ctr' >> /etc/ssh/sshd_config
|
272
|
272
|
echo 'MACs hmac-sha2-512,hmac-sha2-256,hmac-ripemd160
|
273
|
273
|
KexAlgorithms diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1' >> /etc/ssh/sshd_config
|
274
|
|
- service ssh restart
|
275
|
274
|
apt-get -y install fail2ban
|
276
|
|
- rm -f /etc/ssh/ssh_host_*
|
277
|
|
- dpkg-reconfigure openssh-server
|
278
|
275
|
echo 'configure_ssh' >> $COMPLETION_FILE
|
279
|
276
|
echo ''
|
280
|
277
|
echo ''
|