{ pkgs, lib, config, ... }: { config = { services.openssh = { enable = true; openFirewall = false; allowSFTP = true; startWhenNeeded = true; extraConfig = '' AllowTcpForwarding yes X11Forwarding no AllowAgentForwarding no AllowStreamLocalForwarding no AuthenticationMethods publickey StreamLocalBindUnlink yes AllowUsers tzlil git ''; settings = { PermitRootLogin = "no"; PasswordAuthentication = false; KbdInteractiveAuthentication = false; }; }; }; }