[Bug 3837] New: Feature Request: A new TOKEN expanding to PID
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Mon Jun 9 15:16:07 AEST 2025
https://bugzilla.mindrot.org/show_bug.cgi?id=3837
Bug ID: 3837
Summary: Feature Request: A new TOKEN expanding to PID
Product: Portable OpenSSH
Version: 10.0p2
Hardware: All
OS: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: ssh
Assignee: unassigned-bugs at mindrot.org
Reporter: shen_jiamin at comp.nus.edu.sg
Could it be possible to add a new token (e.g. `%P`) that expands to the
PID of the SSH client process. This token would be used in the
`ControlPath` setting in `ssh_config`.
When using `ControlMaster`, SSH creates a background master process.
However, there's currently no clean or reliable way to identify the PID
of this process via the socket name. This makes it difficult to manage
or clean up background SSH processes.
Introducing a new token (e.g. `%P`) for use in `ControlPath`, which
would expand to the PID of the SSH client process, would allow users to
easily associate a control socket with the actual running SSH process,
making it easier to manage or terminate it.
--
You are receiving this mail because:
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list