ssh: disable password login

This commit is contained in:
Rouven Seifert 2024-05-06 11:12:19 +02:00
parent 7630dc4494
commit 81ac3b4c0d
Signed by untrusted user: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
2 changed files with 10 additions and 7 deletions

View file

@ -29,7 +29,13 @@
};
# Enable the OpenSSH daemon.
services.openssh.enable = true;
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "yes";
PasswordAuthentication = "no";
};
};
programs.mosh.enable = true;
# vs code server