fix(ssh): disable password login
This commit is contained in:
parent
e444f16c14
commit
da6b95b562
1 changed files with 6 additions and 1 deletions
|
|
@ -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''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue