goauthentik / goauthentik/platform

ssh to a device failing

Open
#835 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
11
Forks
11
Avg merge
16h 45m
Merged PRs (30d)
106

Description

### Discussed in https://github.com/goauthentik/authentik/discussions/21941

Originally posted by **ammaratef45** April 28, 2026
Hello, I'm following [this documentation](https://docs.goauthentik.io/endpoint-devices/) 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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.