dotfiles-nixos/nixos/modules/ssh.nix

14 lines
293 B
Nix
Raw Permalink Normal View History

2023-06-18 14:32:51 +00:00
{ config, lib, pkgs, ... }:
{
2023-06-18 15:03:56 +00:00
services.openssh = {
enable = true;
settings = {
# Forbid root login through SSH.
PermitRootLogin = "no";
# Use keys only. Remove if you want to SSH using password (not recommended)
PasswordAuthentication = false;
2023-06-18 14:32:51 +00:00
};
2023-06-18 15:03:56 +00:00
};
2023-06-18 14:32:51 +00:00
}