dotfiles-nixos/nixos/modules/ssh.nix

15 lines
334 B
Nix
Raw Normal View History

2023-06-18 14:32:51 +00:00
{ config, lib, pkgs, ... }:
{
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;
};
};
}