From f79a2d98045974229544c5e3ffaf2ff596b52239 Mon Sep 17 00:00:00 2001 From: futile Date: Sat, 18 Jul 2026 01:23:32 +0100 Subject: [PATCH] update set-up-system.sh --- set-up-system.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/set-up-system.sh b/set-up-system.sh index 9c1206e..d1986fe 100755 --- a/set-up-system.sh +++ b/set-up-system.sh @@ -64,6 +64,17 @@ sudo hostnamectl hostname $hostname sudo hostnamectl banner bottom "changed hostname" +# configure sshd +banner top "configuring sshd" +sudo tee /etc/ssh/sshd_config << 'EOF' +Include /etc/ssh/sshd_config.d/*.conf +PermitRootLogin no +PasswordAuthentication no +KbdInteractiveAuthentication no +EOF +sudo systemctl reload sshd +banner bottom "configuring sshd" + # configure dnf banner top "configuring dnf" sudo tee /etc/dnf/dnf.conf << 'EOF'