From ad5bbf864fade77d2396c2db3838046b0ac93bfa Mon Sep 17 00:00:00 2001 From: fwastring Date: Fri, 24 Jan 2025 11:57:22 +0100 Subject: [PATCH] Added openssh config --- shared/openssh.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 shared/openssh.nix diff --git a/shared/openssh.nix b/shared/openssh.nix new file mode 100644 index 0000000..3cbe44d --- /dev/null +++ b/shared/openssh.nix @@ -0,0 +1,16 @@ +{ config, pkgs, ...}: +{ + # Enable the OpenSSH daemon. + services.openssh = { + enable = true; + settings = { + AuthenticationMethods = "publickey password"; + TrustedUserCAKeys = "/etc/ssh/ssh_ca.pub"; + Banner = "none"; + PasswordAuthentication = true; + # PasswordAuthentication = false; + PubKeyAuthentication = true; + Port = 22; + }; + }; +}