Reconfigure ssh server before reboot
This commit is contained in:
parent
bf96206149
commit
4945e21655
|
@ -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 ''
|
||||||
|
|
Loading…
Reference in New Issue