Originally posted by ammaratef45 April 28, 2026
Hello, I'm following this documentation to try and ssh into hosts using libpam-authentik and libnss-authentik
After few hours of debugging (included confirming my pam setup, using getent to verify the host knows about the users, re-reading the documentation few times) I finally found the issue (or an issue at least haha)
libpam-authentik[839317]: failed to init interactive auth: code: 'The service is currently unavailable', message: "Interactive authentication not available"
I couldn't wrap my head around this, all I could guess is that ak-agent is the service in questions, I noticed something interesting. when checking the service status without sudo (systemctl status --user ak-agent.service) I see the service running and doing well (no errors).
Add sudo to that same command and this error shows: Failed to connect to bus: No medium found
Help debugging this would be greatly appreciated <3
cc @ammaratef45
Discussed in goauthentik/authentik#21941
Originally posted by ammaratef45 April 28, 2026
Hello, I'm following this documentation to try and ssh into hosts using
libpam-authentikandlibnss-authentikAfter few hours of debugging (included confirming my pam setup, using getent to verify the host knows about the users, re-reading the documentation few times) I finally found the issue (or an issue at least haha)
I couldn't wrap my head around this, all I could guess is that
ak-agentis the service in questions, I noticed something interesting. when checking the service status without sudo (systemctl status --user ak-agent.service) I see the service running and doing well (no errors).Add sudo to that same command and this error shows:
Failed to connect to bus: No medium foundHelp debugging this would be greatly appreciated <3
cc @ammaratef45