Bug 285043 - pam_ssh(8) does not terminate ssh-agent on logout
Summary: pam_ssh(8) does not terminate ssh-agent on logout
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 14.2-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-26 02:53 UTC by antonfb
Modified: 2025-02-28 15:46 UTC (History)
2 users (show)

See Also:


Attachments
Patch to fix pam_ssh will terminate ssh-agent and fix issue 99217 also (5.36 KB, patch)
2025-02-26 02:57 UTC, antonfb
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description antonfb 2025-02-26 02:53:28 UTC
Using pam_ssh will create a ssh-agent process on login, but it fails to terminate it on logout.  Apparently SIGTERM no longer terminates a ssh-agent.
Comment 1 antonfb 2025-02-26 02:57:30 UTC
Created attachment 257971 [details]
Patch to fix pam_ssh will terminate ssh-agent and fix issue 99217 also

This is a considerable rework of pam_ssh.c
It changes to use the -x option of ssh-agent as suggested by des in PE 99217
It also fixes the issue of 99217 of the lingering zombie.
A bunch of minor C string changes.