SSH Hardening by enforcing high-quality encryption

This commit is contained in:
xmm16 2024-12-18 18:33:11 -03:00
commit 2906243c99
No known key found for this signature in database
3 changed files with 25 additions and 5 deletions

View file

@ -8,6 +8,7 @@
./ui.nix ./ui.nix
./searxng.nix ./searxng.nix
./energy.nix ./energy.nix
./ssh.nix
]; ];
config = { config = {

24
hosts/micronix/ssh.nix Normal file
View file

@ -0,0 +1,24 @@
{...}: {
programs.ssh = {
startAgent = true;
enableAskPassword = true;
hostKeyAlgorithms = [
"ssh-ed25519"
];
pubkeyAcceptedKeyTypes = [
"ssh-ed25519"
];
kexAlgorithms = [
"sntrup761x25519-sha512@openssh.com"
"curve25519-sha256@libssh.org"
];
ciphers = [
"chacha20-poly1305@openssh.com"
"aes256-gcm@openssh.com"
];
macs = [
"hmac-sha2-512-etm@openssh.com"
"hmac-sha2-256-etm@openssh.com"
];
};
}

View file

@ -147,9 +147,4 @@
enable = true; enable = true;
}; };
}; };
programs.ssh = {
enable = true;
startAgent = true;
};
} }