ssh: add kexAlgorithms to matchBlocks

This commit adds the option to add kexAlgorithms as an matchBlock
option with updated test case.
This commit is contained in:
Oliver Geneser
2025-10-27 20:49:00 +01:00
committed by Matthieu Coudron
parent 91cdb0e2d5
commit 2d36a6de2f
3 changed files with 21 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ Host xyz
RemoteForward [localhost]:8081 [10.0.0.2]:80
RemoteForward /run/user/1000/gnupg/S.gpg-agent.extra /run/user/1000/gnupg/S.gpg-agent
DynamicForward [localhost]:2839
KexAlgorithms sntrup761x25519-sha512,sntrup761x25519-sha512@openssh.com,mlkem768x25519-sha256
Host ordered
Port 1

View File

@@ -34,6 +34,11 @@
host.address = "/run/user/1000/gnupg/S.gpg-agent";
}
];
kexAlgorithms = [
"sntrup761x25519-sha512"
"sntrup761x25519-sha512@openssh.com"
"mlkem768x25519-sha256"
];
dynamicForwards = [ { port = 2839; } ];
setEnv = {
FOO = "foo12";