瀏覽代碼

Regenerate keys after reboot

Bob Mottram 10 年之前
父節點
當前提交
771a7c2fab
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0
    3
      install-freedombone.sh

+ 0
- 3
install-freedombone.sh 查看文件

271
   echo 'Ciphers aes256-ctr,aes128-ctr' >> /etc/ssh/sshd_config
271
   echo 'Ciphers aes256-ctr,aes128-ctr' >> /etc/ssh/sshd_config
272
   echo 'MACs hmac-sha2-512,hmac-sha2-256,hmac-ripemd160
272
   echo 'MACs hmac-sha2-512,hmac-sha2-256,hmac-ripemd160
273
   KexAlgorithms diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1' >> /etc/ssh/sshd_config
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
   apt-get -y install fail2ban
274
   apt-get -y install fail2ban
276
-  rm -f /etc/ssh/ssh_host_*
277
-  dpkg-reconfigure openssh-server
278
   echo 'configure_ssh' >> $COMPLETION_FILE
275
   echo 'configure_ssh' >> $COMPLETION_FILE
279
   echo ''
276
   echo ''
280
   echo ''
277
   echo ''