feat: don't load allowUsers if the hostname is tyr.
This commit is contained in:
parent
07efa1e119
commit
508531f5ef
1 changed files with 8 additions and 1 deletions
|
|
@ -2,7 +2,14 @@
|
|||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
AllowUsers = ["root@65.21.241.194" "root@172.16.0.2" "crony@65.21.241.194" "crony@172.16.0.2"];
|
||||
AllowUsers =
|
||||
lib.mkIf (config.networking.hostName != "tyr")
|
||||
[
|
||||
"root@65.21.241.194"
|
||||
"root@172.16.0.2"
|
||||
"crony@65.21.241.194"
|
||||
"crony@172.16.0.2"
|
||||
];
|
||||
X11Forwarding = false;
|
||||
PasswordAuthentication = false;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue