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 = {
|
config = {
|
||||||
services.openssh.enable = true;
|
services.openssh = {
|
||||||
|
enable = true;
|
||||||
|
settings.PasswordAuthentication = false;
|
||||||
|
};
|
||||||
security = {
|
security = {
|
||||||
sudo.execWheelOnly = true;
|
sudo.execWheelOnly = true;
|
||||||
pam = {
|
pam = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue