fix(ssh): disable password login

This commit is contained in:
Khaïs COLIN 2024-08-26 16:03:11 +02:00
parent e444f16c14
commit da6b95b562

View file

@ -29,7 +29,12 @@ in
zramSwap.enable = true;
networking.hostName = "quasar";
networking.domain = "";
services.openssh.enable = true;
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
};
};
users.users.root.openssh.authorizedKeys.keys = [
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKQNIDqvhcfLKIDJybVI0o32CSDZpBXxjRxXj6OVQ93E khais@nixos''
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK9C7ssXUVVMKOxfJOumkP3dUWVtC3cBPlCIl6ZZc8ug khais@void''