added ssh config

This commit is contained in:
julien
2025-10-07 18:49:00 +02:00
parent 9aac55c83e
commit 3aecea8d89
2 changed files with 7 additions and 1 deletions

View File

@@ -37,6 +37,9 @@ if [ $profile = server ]; then
do
ufw allow $i
done
# SSH keys only
echo -e "# SSH keys only\nPasswordAuthentication no\nPubkeyAuthentication yes" > /etc/ssh/sshd_config.d/custom.conf
fi
# Desktop only configuration