|
@@ -6382,24 +6382,6 @@ function configure_ssh {
|
6382
|
6382
|
|
6383
|
6383
|
apt-get -y install fail2ban
|
6384
|
6384
|
echo 'configure_ssh' >> $COMPLETION_FILE
|
6385
|
|
- # Don't reboot if installing within docker
|
6386
|
|
- # random numbers will come from the host system
|
6387
|
|
- if [[ $INSTALLED_WITHIN_DOCKER == "yes" || $INSTALLING_ON_BBB != "yes" ]]; then
|
6388
|
|
- return
|
6389
|
|
- fi
|
6390
|
|
- #echo ''
|
6391
|
|
- #echo ''
|
6392
|
|
- #echo ' *** Rebooting to initialise ssh settings and random number generator ***'
|
6393
|
|
- #echo ''
|
6394
|
|
- #echo " *** Reconnect via ssh on port $SSH_PORT, then run this script again ***"
|
6395
|
|
- #echo ''
|
6396
|
|
- #echo '## ' >> /etc/motd
|
6397
|
|
- #echo '## Type "su" and enter your administrator password, then use the command:' >> /etc/motd
|
6398
|
|
- #echo '## ' >> /etc/motd
|
6399
|
|
- #echo '## freedombone -c freedombone.cfg' >> /etc/motd
|
6400
|
|
- #echo '## ' >> /etc/motd
|
6401
|
|
- #echo '## to continue the installation.' >> /etc/motd
|
6402
|
|
- #reboot
|
6403
|
6385
|
}
|
6404
|
6386
|
|
6405
|
6387
|
# see https://stribika.github.io/2015/01/04/secure-secure-shell.html
|