Score:0

SSH agent not autostarting anymore after upgrade to Kubuntu 22.04

us flag

I upgraded from Kubuntu* 20.04 to 22.04. Now ssh-agent is not automatically started anymore upon boot. To my understanding, ssh-agent is supposed to be started by the desktop environment (i.e. without need to add something in .bashrc, .profile, etc.). Where/how is this done by KDE and what do I need to do to re-enable it?

I already found this question which mentions Xsession.options. However, "use-ssh-agent" is already listed there, apparently without effect.

All other questions around the topic that I found so far mention adding something in .bashrc, .profile or the like. However, I'd like to avoid that (it was working without this before the upgrade, so I guess it should be possible to make it work again).


* I realised that it is actually not an original Kubuntu but Ubuntu on which I later installed kubuntu-desktop. Not sure if this changes things.

KGIII avatar
in flag
I just went through this not long ago. I recall having some issues. Have you tried `sudo systemctl enable ssh` and then rebooting to see if it worked?
luator avatar
us flag
@KGIII I think I already tried this earlier. Just in case, I tried again now, but it didn't work :(
luator avatar
us flag
As a workaround, I now put `eval $(ssh-agent)` in my `.profile`, but I would still like to know how I can restore the default behaviour from before the Ubuntu upgrade, which didn't need any user configuration.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.