|
@@ -199,6 +199,8 @@ function configure_ssh {
|
199
|
199
|
KexAlgorithms diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1' >> /etc/ssh/sshd_config
|
200
|
200
|
service ssh restart
|
201
|
201
|
apt-get -y install fail2ban
|
|
202
|
+ rm -f /etc/ssh/ssh_host_*
|
|
203
|
+ dpkg-reconfigure openssh-server
|
202
|
204
|
echo 'configure_ssh' >> $COMPLETION_FILE
|
203
|
205
|
echo ''
|
204
|
206
|
echo ''
|