From 4f97ec690c64f849f7b942c9f345903b0614391b Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Wed, 22 May 2024 18:18:51 +0200 Subject: [PATCH] set HostKey algorithms by order of preference. --- wo/cli/templates/sshd.mustache | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wo/cli/templates/sshd.mustache b/wo/cli/templates/sshd.mustache index 6803b51..5421d6c 100644 --- a/wo/cli/templates/sshd.mustache +++ b/wo/cli/templates/sshd.mustache @@ -1,10 +1,10 @@ # Use a custom port in the following range : 1024-65536 Port {{sshport}} -#Prefer ed25519 & ECDSA keys rather than 2048 bit RSA +# Supported HostKey algorithms by order of preference. +HostKey /etc/ssh/ssh_host_ed25519_key HostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/ssh_host_ecdsa_key -HostKey /etc/ssh/ssh_host_ed25519_key # Allow root access with ssh keys PermitRootLogin without-password