]> git.ekhem.eu.org Git - server.git/commitdiff
[sshd] Require SSH protocol 2.
authorJakub Czajka <jakub@ekhem.eu.org>
Sun, 25 Sep 2022 17:38:27 +0000 (19:38 +0200)
committerJakub Czajka <jakub@ekhem.eu.org>
Wed, 27 Sep 2023 21:57:20 +0000 (23:57 +0200)
SSH protocol 1 is an older version with known vulnerabilities. This
commit requires `sshd` to use only the newer SSH protocol 2.

sshd/sshd_config

index 4b5f40cde595aaf1e75d599281b4e77ac8b624ca..15c76ece679cc35b1eb735aa1718112606cc5fe3 100644 (file)
@@ -21,6 +21,8 @@ Port 72
 #HostKey /etc/ssh/ssh_host_ecdsa_key
 #HostKey /etc/ssh/ssh_host_ed25519_key
 
+Protocol 2
+
 # Ciphers and keying
 #RekeyLimit default none