Skip to content

ssh to a device failing #835

Description

@BeryJu

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-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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions