From d9ac4e8802aa0fe1f8cc1b32e4683d72efedf7a7 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Fri, 23 Sep 2022 01:47:03 +0200 Subject: SSH: Add own authorized_keys --- hosts/configuration.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hosts/configuration.nix b/hosts/configuration.nix index 63a78c4..f8d6437 100644 --- a/hosts/configuration.nix +++ b/hosts/configuration.nix @@ -60,6 +60,9 @@ isNormalUser = true; extraGroups = [ "wheel" "audio" "video" ]; # Enable ‘sudo’ for the user. hashedPassword = secrets.baitinq.hashed_password; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID99gQ/AgXhgwAjs+opsRXMbWpXFRT2aqAOUbN3DsrhQ (none)" + ]; }; environment.variables = { @@ -129,6 +132,9 @@ services = { openssh = { enable = true; + /* DOESNT WORK BECAUSE OF AUTHORIZEDKEYS BUG + passwordAuthentication = false; + kbdInteractiveAuthentication = false;*/ listenAddresses = [{ addr = "0.0.0.0"; port = 2222; -- cgit 1.4.1