feat(servers): fix ssh not working with forgejo.
This commit is contained in:
parent
850f15885a
commit
606f04493b
2 changed files with 13 additions and 1 deletions
|
@ -19,5 +19,10 @@
|
|||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBJLduAXHWJiglmfRfkBGKffzVWkJP6porxIzw6+Zz3W crony@cronyakatsuki.xyz"
|
||||
];
|
||||
|
||||
services.fail2ban.enable = true;
|
||||
services.fail2ban = {
|
||||
enable = true;
|
||||
ignoreIP = [
|
||||
"65.21.241.194"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -31,4 +31,11 @@
|
|||
entrypoints = "websecure";
|
||||
};
|
||||
};
|
||||
|
||||
services.openssh = {
|
||||
authorizedKeysFiles = ["/var/lib/%u/.ssh/authorized_keys"];
|
||||
settings = {
|
||||
AllowUsers = ["forgejo"];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue