FS#79608 - [openssh] (ssh-agent) Socket base activation approach of ssh-agent does not work first request

Attached to Project: Arch Linux
Opened by Detlev Brodowski (brody) - Thursday, 07 September 2023, 14:46 GMT
Last edited by Toolybird (Toolybird) - Sunday, 10 September 2023, 20:45 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Lukas Fleischer (lfleischer)
David Runge (dvzrv)
Levente Polyak (anthraxx)
Giancarlo Razzolini (grazzolini)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The socket base activation approach of ssh-agent does not work for the first request.

Ssh-agent clients like keepassxc or `ssh-add` expect a running ssh-agent service and cannot handle a service that is just started with this first request.
However, the ssh-agent service is started only after the first request.

Additional info:
* package version(s): 9.4p1
* config and/or log files etc.: /usr/lib/systemd/user/ssh-agent.service and /usr/lib/systemd/user/ssh-agent.socket
* link to upstream bug report, if any

Steps to reproduce:

After a fresh login and the execution of `ssh-add -l` both clients (keepassxc resp. ssh-add) are hanging without any feedback.
With the help of journalctl you can see that although running `ssh-add -l` starts the ssh-agent service, it does not yet work for this 1st request. Only canceling `ssh-add -l` and executing it again gives the desired result.

A workaround would be to use the systemd unit file `/usr/lib/systemd/user/ssh-agent.service` alone, with a slightly modified content. See the attachment.

Kind regards
Detlev
This task depends upon

Closed by  Toolybird (Toolybird)
Sunday, 10 September 2023, 20:45 GMT
Reason for closing:  Fixed
Additional comments about closing:  openssh 9.4p1-4
Comment by Detlev Brodowski (brody) - Thursday, 07 September 2023, 14:48 GMT
Sorry, I mean Socket base activation approach of ssh-agent does not work for the first request.
Comment by David Runge (dvzrv) - Saturday, 09 September 2023, 08:13 GMT
@brody: Thanks for the ticket!

That is indeed correct and I will revise the package.

Please test 9.4p1-4 in [core-testing] and provide feedback!
Comment by Detlev Brodowski (brody) - Sunday, 10 September 2023, 19:56 GMT
I tested the new unit file and it works as expected.

Thanks and best regards

Detlev