Allow password w/ local ssh connections
This commit is contained in:
parent
a6ec7bd020
commit
38d7725c3a
|
@ -6,6 +6,12 @@
|
||||||
forwardX11 = true;
|
forwardX11 = true;
|
||||||
permitRootLogin = "no";
|
permitRootLogin = "no";
|
||||||
passwordAuthentication = false;
|
passwordAuthentication = false;
|
||||||
|
|
||||||
|
# Allow local LAN to connect with passwords
|
||||||
|
extraConfig = ''
|
||||||
|
Match address 192.168.0.0/24
|
||||||
|
PasswordAuthentication yes
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.hlissner.openssh.authorizedKeys.keys = [
|
users.users.hlissner.openssh.authorizedKeys.keys = [
|
||||||
|
|
Loading…
Reference in a new issue