#1002691 openssh-client: ssh-agent doesn't get autostarted under wayland

Package:
openssh-client
Source:
openssh
Description:
secure shell (SSH) client, for secure access to remote machines
Submitter:
Michael Meier
Date:
2025-04-22 09:39:03 UTC
Severity:
normal
#1002691#5
Date:
2021-12-27 14:47:38 UTC
From:
To:
I'm using wayland with kde plasma on debian testing. Under wayland the ssh
agent doesn't get auto started as it does under x-server. According to google
that seems to be a known issue, but I couldn't find any bug report for debian.
So here it is :-).
I've solved it by applying this solution:
https://blog.debiania.in.ua/posts/2020-05-18-howto-auto-start-ssh-agent-with-
systemd-on-debian-bullseye.html

#1002691#10
Date:
2023-06-13 19:03:18 UTC
From:
To:
Hi

On Mon, 27 Dec 2021 09:47:38 -0500 Michael Meier <schissdraeck@rmm.li>  wrote:
 > I'm using wayland with kde plasma on debian testing. Under wayland
the ssh
 > agent doesn't get auto started as it does under x-server. According
to google
 > that seems to be a known issue, but I couldn't find any bug report
for debian.
 > So here it is :-).

I'm using plasma wayland on bookworm and it works out of the box since
at least half a year now :-)

user/ssh-agent.service specifies Before=graphical-session-pre.target
user/plasma-core.target specifies Wants=graphical-session-pre.target and
After=graphical-session-pre.target
and these units are active on my machine:

| $ systemctl --user status graphical-session-pre.target
| ● graphical-session-pre.target - Session services which should run
early before the graphical session is brought up
|      Loaded: loaded
(/usr/lib/systemd/user/graphical-session-pre.target; static)
|      Active: active since Tue 2023-06-13 15:46:05 CEST; 4h 59min ago
|       Until: Tue 2023-06-13 15:46:05 CEST; 4h 59min ago
|        Docs: man:systemd.special(7)

| $ systemctl --user status plasma-core.target
| ● plasma-core.target - KDE Plasma Workspace Core
|      Loaded: loaded (/usr/lib/systemd/user/plasma-core.target; static)
|      Active: active since Tue 2023-06-13 15:46:10 CEST; 5h 11min ago
|       Until: Tue 2023-06-13 15:46:10 CEST; 5h 11min ago

I think this bug can be closed.

Cheers,
Adi

#1002691#15
Date:
2025-04-22 09:34:05 UTC
From:
To:
Control: tags -1
thanks

In trixie, ssh-agent will be started via systemd user unit, socket
activated. This works for me on KDE with Wayland, and I think this bug
can be closed.

Greetings
Marc

#1002691#18
Date:
2025-04-22 09:34:05 UTC
From:
To:
Control: tags -1
thanks

In trixie, ssh-agent will be started via systemd user unit, socket
activated. This works for me on KDE with Wayland, and I think this bug
can be closed.

Greetings
Marc