separate ssh client and server config and move to common

This commit is contained in:
wo2wz 2025-08-09 11:40:41 -04:00
parent 7c29e984ae
commit 496a9ac3bc
4 changed files with 25 additions and 14 deletions

14
common/ssh/server.nix Normal file
View file

@ -0,0 +1,14 @@
{ config, ... }:
{
services.openssh = {
enable = true;
ports = [ 8743 ];
settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
PermitRootLogin = "no";
AllowUsers = [ "wo2w" ];
};
};
}