ssh -f and pid

Damien Miller djm at mindrot.org
Fri Feb 5 15:21:25 EST 2010


On Thu, 4 Feb 2010, Ming wrote:

> I'd like to second the patch -- or functionality like it -- that
> Folkert van Heusden proposed twelve months ago for the distribution.
> 
> Without ssh -f returning the pid to the caller, numerous daemon and
> script monitor packages can't manage ssh, as they can countless other
> daemons that properly return pid.  A monitor needs to record the pids
> of ssh processes it has started to kill them or to know when they have
> died.  Proper keep alive settings are no use against connections reset
> by peer.

It isn't necessary. You can tear down ssh connections from the control
socket and learn the PID of a running SSH, see the commands listed
under -O in ssh(1).

-d



More information about the openssh-unix-dev mailing list