diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2024-06-20 11:05:27 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2024-06-20 11:05:27 +0900 |
| commit | 8d2d69411be3fa24a610afa1609614b9bfc12425 (patch) | |
| tree | 4718280478769874d9730c201026c66bd3310100 | |
| parent | bf619cee294f27a6727c8c3dcb35343ea494dca5 (diff) | |
Init
| -rwxr-xr-x | static/thesiah.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/static/thesiah.sh b/static/thesiah.sh index a413fe9..6acccec 100755 --- a/static/thesiah.sh +++ b/static/thesiah.sh @@ -513,7 +513,7 @@ sshsetup() { whiptail --infobox "Setting up ssh..." 7 50 [ -x "$(command -v "ssh")" ] || installpkg openssh pacman -Qq openssh-"$initsys" >/dev/null 2>&1 || installpkg openssh-"$initsys" - sed -Ei "/^#Port\s*22$/s/#//;s/^#?(ListenAddress) 0\.0\.0\.0/\1 127\.0\.0\.1;s/^#?(PasswordAuthentication).*/\1 no;s/^#?(UsePAM).*/\1 no" /etc/ssh/sshd_config >/dev/null 2>&1 + sed -Ei "s/^#?(PasswordAuthentication).*/\1 no;s/^#?(UsePAM).*/\1 no" /etc/ssh/sshd_config >/dev/null 2>&1 case "$initsys" in "runit") ln -sf /etc/runit/sv/sshd /run/runit/service/ >/dev/null 2>&1 |
