From 9e09139039ca48d790548673d1c532de5299ed96 Mon Sep 17 00:00:00 2001 From: Dan Yael Sajarópulos Verdugo Date: Sat, 11 May 2024 17:39:39 -0700 Subject: Added Debian 12 ssh configuration overriding warning --- content/sshkeys.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/content/sshkeys.md b/content/sshkeys.md index f1c8c0d..550a3fb 100644 --- a/content/sshkeys.md +++ b/content/sshkeys.md @@ -123,6 +123,22 @@ Once we\'ve done that, we will reload our SSH daemon: systemctl reload sshd ``` +### **Warning:** + +If you are using Debian 12, it is possible that your ssh configuration +will be overridden by the default configuration added when creating +the VPS, which will leave you vulnerable to brute force attacks. To +prevent this, remove the configuration file using the following +command: + +```sh +rm /etc/ssh/sshd_config/50-cloud-init.conf +``` + +Also verify that the `/etc/ssh/ssh_config.d/` path is empty. If not, +make sure that the configuration files in that folder are not +overriding yours. + ### We\'re done! Now you can log in quickly and password-less-ly to your server, despite -- cgit v1.2.3