Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yubikey-agent service inactive (dead) #39

Closed
r1cebank opened this issue Jun 28, 2020 · 5 comments · Fixed by #40
Closed

yubikey-agent service inactive (dead) #39

r1cebank opened this issue Jun 28, 2020 · 5 comments · Fixed by #40

Comments

@r1cebank
Copy link

Hi I installed this package using the AUR package and ran the following:

systemctl daemon-reload --user
sudo systemctl enable --now pcscd.socket
systemctl --user enable --now yubikey-agent

But then I realize, when the computer is rebooted, the yubikey-agent do not restart, this cause the SSH_AUTH_SOCK to not be found.

Here is the output for systemctl --user status yubikey-agent

● yubikey-agent.service - Seamless ssh-agent for YubiKeys
     Loaded: loaded (/usr/lib/systemd/user/yubikey-agent.service; enabled; vend>
     Active: inactive (dead)
       Docs: https://filippo.io/yubikey-agent

System information:

OS: Manjaro 20.0.3 Lysia
Kernel: x86_64 Linux 5.6.16-1-MANJARO
DE: GNOME 3.36.3

Anyhelp would be nice, thank you

@r1cebank
Copy link
Author

I tried some solutions regarding the inactive user service, it appears if I change the target to default instead of multi-user it fixes the issue. I am wondering if this is a known issue or just how my system is. If the fix can be included in the AUR package that would be great.

https://bbs.archlinux.org/viewtopic.php?id=170344

@FiloSottile
Copy link
Owner

/cc @LeSuisse

LeSuisse added a commit to LeSuisse/yubikey-agent that referenced this issue Jun 29, 2020
With the current choice of multi-user.target the agent do not start when
the user boots with a local GUI login.

Closes FiloSottile#39
@LeSuisse
Copy link
Contributor

I confirm the issue when you start with a local GUI login.

Setting WantedBy to default.target is indeed better as it will be (most of the time) an alias of multi-user.target or graphical.target depending on the situation.

I updated the AUR package (0.1.3-2) with the change. Note that you will to recreate the appropriate symlink with systemctl --user enable yubikey-agent.

FiloSottile pushed a commit that referenced this issue Jun 29, 2020
With the current choice of multi-user.target the agent do not start when
the user boots with a local GUI login.

Closes #39
@FiloSottile
Copy link
Owner

Thank you @LeSuisse!

@r1cebank
Copy link
Author

Thanks @LeSuisse

archlinux-github pushed a commit to archlinux/aur that referenced this issue Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants