SSH Hardening by enforcing high-quality encryption
This commit is contained in:
parent
1238312969
commit
2906243c99
3 changed files with 25 additions and 5 deletions
|
@ -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
24
hosts/micronix/ssh.nix
Normal 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"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
|
@ -147,9 +147,4 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.ssh = {
|
|
||||||
enable = true;
|
|
||||||
startAgent = true;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue