ソースを参照

Reconfigure ssh server before reboot

Bob Mottram 11 年 前
コミット
4945e21655
共有1 個のファイルを変更した2 個の追加0 個の削除を含む
  1. 2
    0
      install-freedombone.sh

+ 2
- 0
install-freedombone.sh ファイルの表示

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