File tree Expand file tree Collapse file tree 1 file changed +1
-44
lines changed Expand file tree Collapse file tree 1 file changed +1
-44
lines changed Original file line number Diff line number Diff line change 303303clear
304304
305305# Get new server keys
306+ echo " Adding new SSH keys..."
306307rm -v /etc/ssh/ssh_host_*
307308dpkg-reconfigure openssh-server
308309
@@ -358,50 +359,6 @@ echo
358359sleep 3
359360clear
360361
361- # Change IP
362- echo -e " \e[0m"
363- echo " The script will now configure your IP to be static."
364- echo -e " \e[36m"
365- echo -e " \e[1m"
366- echo " Your internal IP is: $ADDRESS "
367- echo -e " \e[0m"
368- echo -e " Write this down, you will need it to set static IP"
369- echo -e " in your router later. It's included in this guide:"
370- echo -e " https://www.techandme.se/open-port-80-443/ (step 1 - 5)"
371- echo -e " \e[32m"
372- read -p " Press any key to set static IP..." -n1 -s
373- clear
374- echo -e " \e[0m"
375- ifdown $IFACE
376- sleep 2
377- ifup $IFACE
378- sleep 2
379- bash $SCRIPTS /ip.sh
380- ifdown $IFACE
381- sleep 2
382- ifup $IFACE
383- sleep 2
384- echo
385- echo " Testing if network is OK..."
386- echo
387- bash $SCRIPTS /test_connection.sh
388- sleep 2
389- echo
390- echo -e " \e[0mIf the output is \e[32mConnected! \o/\e[0m everything is working."
391- echo -e " \e[0mIf the output is \e[31mNot Connected!\e[0m you should change\nyour settings manually in the next step."
392- echo -e " \e[32m"
393- read -p " Press any key to open /etc/network/interfaces..." -n1 -s
394- echo -e " \e[0m"
395- nano /etc/network/interfaces
396- clear
397- echo " Testing if network is OK..."
398- ifdown $IFACE
399- sleep 2
400- ifup $IFACE
401- sleep 2
402- echo
403- bash $SCRIPTS /test_connection.sh
404-
405362# Change password
406363echo -e " \e[0m"
407364echo " For better security, change the Linux password for user [wordpress]"
You can’t perform that action at this time.
0 commit comments