15 lines
334 B
Nix
15 lines
334 B
Nix
|
{ 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;
|
||
|
};
|
||
|
};
|
||
|
}
|
||
|
|