blob: eb52bf1b8a759b54eaef4e19190b47f0ee4579f9 (
plain) (
tree)
|
|
{lib, config, ...}: {
options.openssh.enable = lib.mkEnableOption "OpenSSH server";
config = lib.mkIf config.openssh.enable {
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
PrintMotd = false;
};
extraConfig = ''
Match user git
AllowTcpForwarding no
AllowAgentForwarding no
PasswordAuthentication no
PermitTTY no
X11Forwarding no
'';
};
};
}
|