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'