--- UTC r226103 | des | 2011-10-07 08:10:16 -0500 (Fri, 07 Oct 2011) | 5 lines Add a -x option that causes ssh-agent(1) to exit when all clients have disconnected. --- ssh-agent.1.orig 2026-10-06 01:45:31.000000000 -0700 +++ ssh-agent.1 2026-10-10 09:59:21.023621000 -0700 @@ -43,7 +43,7 @@ .Sh SYNOPSIS .Nm ssh-agent .Op Fl c | s -.Op Fl \&DdU +.Op Fl \&DdUx .Op Fl T | A Ar directory | Fl a Ar bind_address .Op Fl E Ar fingerprint_hash .Op Fl O Ar option @@ -228,6 +228,8 @@ will delete stale agent sockets regardless of the host If this option is given twice, .Nm will delete stale agent sockets regardless of the host name that created them. +.It Fl x +Exit after the last client has disconnected. .It Ar command Op Ar arg ... If a command (and optional arguments) is given, this is executed as a subprocess of the agent.