]> git.ekhem.eu.org Git - server.git/commitdiff
[sshd] Listen on a non-standard port.
authorJakub Czajka <jakub@ekhem.eu.org>
Sun, 25 Sep 2022 15:27:55 +0000 (17:27 +0200)
committerJakub Czajka <jakub@ekhem.eu.org>
Wed, 27 Sep 2023 21:57:20 +0000 (23:57 +0200)
By default `sshd` listens on port 22. Most attack scripts are written
for this configuration. This commit changes the port to 72, which is
not used by any other popular service.

sshd/sshd_config

index 562b4f07d61c3472e844d86a66699817191adb09..f08521d4f9a040845baaf928b29a2eb22703b60b 100644 (file)
@@ -12,7 +12,7 @@
 
 Include /etc/ssh/sshd_config.d/*.conf
 
-#Port 22
+Port 72
 #AddressFamily any
 #ListenAddress 0.0.0.0
 #ListenAddress ::