Pārlūkot izejas kodu

Regenerate keys after reboot

Bob Mottram 10 gadus atpakaļ
vecāks
revīzija
771a7c2fab
1 mainītis faili ar 0 papildinājumiem un 3 dzēšanām
  1. 0
    3
      install-freedombone.sh

+ 0
- 3
install-freedombone.sh Parādīt failu

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