Skip to content

Commit

Permalink
fix(services): ssh server settings
Browse files Browse the repository at this point in the history
  • Loading branch information
zakuciael committed Aug 22, 2024
1 parent a3dc558 commit c9ae685
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions modules/services/ssh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,7 @@ in {
enable = mkEnableOption "openssh server";
listenAddresses = mkOption {
inherit (options.services.openssh.listenAddresses) description example type;
default = [
{
addr = "192.168.1.0";
port = 22;
}
];
default = [];
};
};
remotes = mkOption {
Expand Down Expand Up @@ -57,7 +52,7 @@ in {
allowSFTP = true;
listenAddresses = cfg.server.listenAddresses;
settings = {
PermitRootLogin = false;
PermitRootLogin = "no";
PasswordAuthentication = false;
};
};
Expand Down

0 comments on commit c9ae685

Please sign in to comment.