Procházet zdrojové kódy

Reconfigure ssh server before reboot

Bob Mottram před 10 roky
rodič
revize
4945e21655
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2
    0
      install-freedombone.sh

+ 2
- 0
install-freedombone.sh Zobrazit soubor

@@ -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 ''