Initial commit
This commit is contained in:
commit
cfcc57a8bd
353 changed files with 18756 additions and 0 deletions
44
module/aspect/ssh/ssh-server.nix
Normal file
44
module/aspect/ssh/ssh-server.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
den.aspects = {
|
||||
ssh-server = {
|
||||
nixos = {
|
||||
services = {
|
||||
openssh = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
settings = {
|
||||
X11Forwarding = false;
|
||||
PasswordAuthentication = false;
|
||||
KbdInteractiveAuthentication = false;
|
||||
PermitRootLogin = "prohibit-password";
|
||||
KexAlgorithms = [
|
||||
"mlkem768x25519-sha256"
|
||||
"sntrup761x25519-sha512"
|
||||
"sntrup761x25519-sha512@openssh.com"
|
||||
"curve25519-sha256"
|
||||
"curve25519-sha256@libssh.org"
|
||||
"diffie-hellman-group-exchange-sha256"
|
||||
"diffie-hellman-group18-sha512"
|
||||
"diffie-hellman-group16-sha512"
|
||||
];
|
||||
};
|
||||
extraConfig = ''
|
||||
PubkeyAcceptedAlgorithms ssh-ed25519,rsa-sha2-512,rsa-sha2-256
|
||||
StreamLocalBindUnlink yes
|
||||
AllowUsers kirbara
|
||||
'';
|
||||
};
|
||||
};
|
||||
programs = {
|
||||
ssh = {
|
||||
hostKeyAlgorithms = [
|
||||
"ssh-ed25519"
|
||||
"rsa-sha2-512"
|
||||
"rsa-sha2-256"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue