ssh: require public key authentication

This commit is contained in:
Sky
2026-02-09 08:29:55 +00:00
parent 1fbbf30012
commit b54217ef0a
3 changed files with 13 additions and 4 deletions

View File

@@ -1,6 +1,10 @@
{ ... }:
{
services.openssh.enable = true;
services.openssh = {
enable = true;
settings.PasswordAuthentication = false;
settings.KbdInteractiveAuthentication = false;
};
networking = {
hostName = "macmini";