Skip to content

Commit e93bdd3

Browse files
committed
nixos/common: modernize KexAlgorithms selection
sshd determines order of preference from the list of acceptable algos in KexAlgorithms by the order of the items, so sort by security properties or as per upstream openSSH ordering Add new post-quantum secure algorithms
1 parent 7a4dc5c commit e93bdd3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nixos/common/openssh.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@
1111

1212
# Use key exchange algorithms recommended by `nixpkgs#ssh-audit`
1313
settings.KexAlgorithms = [
14+
"mlkem768x25519-sha256"
15+
"sntrup761x25519-sha512"
16+
"sntrup761x25519-sha512@openssh.com"
1417
"curve25519-sha256"
1518
"curve25519-sha256@libssh.org"
1619
"diffie-hellman-group16-sha512"
1720
"diffie-hellman-group18-sha512"
18-
"sntrup761x25519-sha512@openssh.com"
1921
];
2022
# Only allow system-level authorized_keys to avoid injections.
2123
# We currently don't enable this when git-based software that relies on this is enabled.

0 commit comments

Comments
 (0)