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
|
|
|
}
|