disable password authentication in ssh
This commit is contained in:
parent
a6a023ffe3
commit
b2dde62033
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
services.openssh.enable = true;
|
||||
services.openssh.settings = {
|
||||
PermitRootLogin = true;
|
||||
PasswordAuthentication = false;
|
||||
PasswordAuthentication = "no";
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [22];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue