{ services.openssh = { enable = true; settings = { # PermitRootLogin = "no"; PasswordAuthentication = false; KbdInteractiveAuthentication = false; AuthenticationMethods = "publickey"; PubkeyAuthentication = "yes"; ChallengeResponseAuthentication = "no"; X11Forwarding = false; }; }; }