> We can do this with the following patch to the OpenSSH package's
> ssh-agent.service file:
> 
> diff --git a/debian/systemd/ssh-agent.service
> b/debian/systemd/ssh-agent.service index 72e0a3e46..19ea47c91 100644
> --- a/debian/systemd/ssh-agent.service
> +++ b/debian/systemd/ssh-agent.service
> @@ -1,6 +1,8 @@
>  [Unit]
>  Description=OpenSSH Agent
>  Documentation=man:ssh-agent(1)
> +Requires=ssh-agent.socket
> +After=ssh-agent.socket
>  
>  [Service]
>  Environment=SSH_ASKPASS_REQUIRE=force
> 
> 
> You can test this if you like by dropping a file with this contents into
> ~/.config/systemd/user/ssh-agent.service.d/override.conf :
> 
> ```
> # Added while debugging https://bugs.debian.org/1103522
> [Unit]
> Requires=ssh-agent.socket
> After=ssh-agent.socket
> ```
> 
> Then do:
> 
>     systemctl --user daemon-reload
>     systemctl --user restart ssh-agent.service
> 
> And you should see that the socket is up and the agent is listening on
> the appropriate socket.

Well spotted, this does indeed fix the behaviour I was experiencing!

Attachment: pgp3sMZEAd2uS.pgp
Description: Signature digitale OpenPGP

Reply via email to