2023-07-29 15:22:56 +05:30
|
|
|
_: {
|
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
PasswordAuthentication = false;
|
|
|
|
KbdInteractiveAuthentication = false;
|
|
|
|
PermitRootLogin = "no";
|
|
|
|
};
|
|
|
|
hostKeys = [
|
|
|
|
{
|
2024-06-16 21:25:47 +05:30
|
|
|
path = "/persist/system/etc/ssh/keys/ssh_host_ed25519_key";
|
2023-07-29 15:22:56 +05:30
|
|
|
type = "ed25519";
|
|
|
|
}
|
|
|
|
{
|
2024-06-16 21:25:47 +05:30
|
|
|
path = "/persist/system/etc/ssh/keys/ssh_host_rsa_key";
|
2023-07-29 15:22:56 +05:30
|
|
|
type = "rsa";
|
|
|
|
bits = "4096";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|