summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2024-06-20 11:05:27 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2024-06-20 11:05:27 +0900
commit8d2d69411be3fa24a610afa1609614b9bfc12425 (patch)
tree4718280478769874d9730c201026c66bd3310100
parentbf619cee294f27a6727c8c3dcb35343ea494dca5 (diff)
Init
-rwxr-xr-xstatic/thesiah.sh2
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