Skip to content

Commit

Permalink
ssh: only allow strong KexAlgorithms
Browse files Browse the repository at this point in the history
The defaults include "diffie-hellman-group-exchange-sha256" which
has incorrect fallback behaviour which reduces its strength and is
flagged as warning by ssh-audit 3.0.

This adds "diffie-hellman-group16-sha512" and "diffie-hellman-group18-sha512"
which are recommended by ssh-audit 3.0.

PL-131620
  • Loading branch information
dpausp committed Jul 12, 2023
1 parent f726813 commit a64c156
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nixos/platform/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,13 @@ in {
openssh.settings = {
KbdInteractiveAuthentication = false;
PasswordAuthentication = false;
KexAlgorithms = [
"sntrup761x25519-sha512@openssh.com"
"curve25519-sha256"
"curve25519-sha256@libssh.org"
"diffie-hellman-group16-sha512"
"diffie-hellman-group18-sha512"
];
};

telegraf.enable = mkDefault true;
Expand Down

0 comments on commit a64c156

Please sign in to comment.