feat remove password auth on ssh
This commit is contained in:
parent
9649118ec4
commit
bd11de92a8
1 changed files with 4 additions and 1 deletions
|
|
@ -2,7 +2,10 @@
|
|||
{
|
||||
|
||||
config = {
|
||||
services.openssh.enable = true;
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings.PasswordAuthentication = false;
|
||||
};
|
||||
security = {
|
||||
sudo.execWheelOnly = true;
|
||||
pam = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue