From 438445dcbb7ea0e053487bdb1fd3059b0a19040c Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Fri, 31 May 2024 00:01:16 +0200 Subject: [PATCH] no pwauth --- profiles/sshd.nix | 1 + users/pbsds/default.nix | 1 + users/pbsds/home/profiles/ssh.nix | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/profiles/sshd.nix b/profiles/sshd.nix index 6dff5ec..f20c791 100644 --- a/profiles/sshd.nix +++ b/profiles/sshd.nix @@ -1,5 +1,6 @@ { services.openssh.enable = true; services.openssh.settings.X11Forwarding = true; + services.openssh.settings.PasswordAuthentication = false; services.fail2ban.enable = true; } diff --git a/users/pbsds/default.nix b/users/pbsds/default.nix index 6005101..cc66178 100644 --- a/users/pbsds/default.nix +++ b/users/pbsds/default.nix @@ -72,6 +72,7 @@ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOm2UFDD+qsnKvlBBZ/nhBqY9yeLewwF/bexD2SUL7E3 pbsds@sopp" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL6eTQkxO/1XflHpGf3478+Z7HFYYaf1d4M6mvSK2nAU root@sopp" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJVohqGMKp/UEZtb71RSBBXOEGX4o3lN5GYBlP7HEKbs root@brumlebasse" + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILocbYCqu63RT2+mE0l+ZWWw9RVHNcydtLXbLklg6oPe pederbs@pvv" ]; }; } diff --git a/users/pbsds/home/profiles/ssh.nix b/users/pbsds/home/profiles/ssh.nix index 8135903..72ef20f 100644 --- a/users/pbsds/home/profiles/ssh.nix +++ b/users/pbsds/home/profiles/ssh.nix @@ -46,7 +46,6 @@ # ntnu "stud.ntnu.no".hostname = "login.stud.ntnu.no"; "login.stud.ntnu.no" = {}; - #"clab15.idi.ntnu.no" = {}; "idun-login1.hpc.ntnu.no" = {}; "snotra-login1.idi.ntnu.no" = {}; "oppdal.idi.ntnu.no" = {};