fix openssh config bug
This commit is contained in:
+3
-3
@@ -94,8 +94,8 @@ alpi_basics(){
|
|||||||
if [ "$yn" == "y" ]; then
|
if [ "$yn" == "y" ]; then
|
||||||
sudo pacman -S --needed --noconfirm vim rsync acpi parted imagemagick lynx wget alsa-utils tmux git openssh knockd bluez-utils htop
|
sudo pacman -S --needed --noconfirm vim rsync acpi parted imagemagick lynx wget alsa-utils tmux git openssh knockd bluez-utils htop
|
||||||
print_msg 'securing ssh'
|
print_msg 'securing ssh'
|
||||||
sed -i.back 's/^#PermitEmptyPasswords.*/PermitEmptyPasswords no/'
|
sed -i.back 's/^#PermitEmptyPasswords.*/PermitEmptyPasswords no/' /etc/ssh/sshd_config
|
||||||
sed -i.back 's/^#PermitRootLogin.*/PermitRootLogin no/'
|
sed -i.back 's/^#PermitRootLogin.*/PermitRootLogin no/' /etc/ssh/sshd_config
|
||||||
sudo systemctl enable sshd
|
sudo systemctl enable sshd
|
||||||
sudo systemctl start sshd
|
sudo systemctl start sshd
|
||||||
alpi_avahi
|
alpi_avahi
|
||||||
@@ -364,7 +364,7 @@ alpi_lamp(){
|
|||||||
read yn
|
read yn
|
||||||
yn=${yn:-y}
|
yn=${yn:-y}
|
||||||
if [ "$yn" == "y" ]; then
|
if [ "$yn" == "y" ]; then
|
||||||
sudo pacman -S --needed --noconfirm apache php php-apache phpmyadmin php-mcrypt
|
sudo pacman -S --needed --noconfirm apache php php-apache phpmyadmin php-mcrypt php-gd
|
||||||
print_question "Should we install and configure mysql (if not already done)? [y|N] "
|
print_question "Should we install and configure mysql (if not already done)? [y|N] "
|
||||||
read sql
|
read sql
|
||||||
sql=${sql:-n}
|
sql=${sql:-n}
|
||||||
|
|||||||
Reference in New Issue
Block a user