Sshd : Enable key auth.
This commit is contained in:
parent
9e9dbc8591
commit
187b9ffe97
|
@ -9,12 +9,12 @@
|
||||||
port = 22143;
|
port = 22143;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
settings = {
|
settings = { # TODO: Migrate from passwords.
|
||||||
AllowUsers = [ "root" ];
|
AllowUsers = [ "root" ];
|
||||||
LoginGraceTime = "1m";
|
LoginGraceTime = "1m";
|
||||||
MaxAuthTries = 1;
|
MaxAuthTries = 4;
|
||||||
MaxSessions = 10;
|
MaxSessions = 10;
|
||||||
PermitRootLogin = "yes";
|
PermitRootLogin = "yes"; # TODO: Make `prohibit-password`.
|
||||||
StrictModes = false;
|
StrictModes = false;
|
||||||
|
|
||||||
UseDns = false;
|
UseDns = false;
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
KerberosAuthentication = false;
|
KerberosAuthentication = false;
|
||||||
PasswordAuthentication = true;
|
PasswordAuthentication = true;
|
||||||
PermitEmptyPasswords = false;
|
PermitEmptyPasswords = false;
|
||||||
PubkeyAuthentication = false;
|
PubkeyAuthentication = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue