From 6b36d3280df1d862e5975e3492a02cc2a0837304 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 24 May 2023 12:48:41 +0800 Subject: [PATCH] nixops: nixos 23.05 SSH config --- nixops/desktop.nix | 2 +- nixops/rpi.nix | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nixops/desktop.nix b/nixops/desktop.nix index b9e50407..a7144b64 100644 --- a/nixops/desktop.nix +++ b/nixops/desktop.nix @@ -82,7 +82,7 @@ in }; services.openssh.enable = true; - services.openssh.passwordAuthentication = false; + services.openssh.settings.PasswordAuthentication = false; services.openssh.extraConfig = '' StreamLocalBindUnlink yes diff --git a/nixops/rpi.nix b/nixops/rpi.nix index 18d84482..0e11559b 100644 --- a/nixops/rpi.nix +++ b/nixops/rpi.nix @@ -24,8 +24,8 @@ in }; services.openssh.enable = true; - services.openssh.passwordAuthentication = false; - services.openssh.gatewayPorts = "clientspecified"; + services.openssh.settings.PasswordAuthentication = false; + services.openssh.settings.GatewayPorts = "clientspecified"; services.openssh.extraConfig = '' StreamLocalBindUnlink yes