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(+) (limited to 'content') 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 From 6b2dbaad0e360bad4c0294bfe2f4534b2938e103 Mon Sep 17 00:00:00 2001 From: Dan Yael Sajarópulos Verdugo Date: Sat, 11 May 2024 21:45:57 -0700 Subject: Updated ssh config overriden warning --- content/sshkeys.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'content') diff --git a/content/sshkeys.md b/content/sshkeys.md index 550a3fb..7c39413 100644 --- a/content/sshkeys.md +++ b/content/sshkeys.md @@ -125,7 +125,7 @@ systemctl reload sshd ### **Warning:** -If you are using Debian 12, it is possible that your ssh configuration +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 -- cgit v1.2.3