Reconfigure ssh server before reboot

This commit is contained in:
Bob Mottram 2014-09-21 14:21:17 +01:00
parent bf96206149
commit 4945e21655
1 changed files with 2 additions and 0 deletions

View File

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