Only ever use forgejo's ssh-keys for openssh

This commit is contained in:
SebastianStork 2025-06-07 15:14:37 +02:00
parent 3926a6eeb9
commit 50f6bc35c0

View file

@ -5,6 +5,7 @@
config = lib.mkIf config.custom.services.forgejo.ssh.enable {
services.openssh = {
enable = true;
authorizedKeysFiles = lib.mkForce [ "${config.services.forgejo.stateDir}/.ssh/authorized_keys" ];
settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;