Bug 1594

Summary: please add an option to print the pid of -f backgrounded process
Product: Portable OpenSSH Reporter: Marc 'Zugschlus' Haber <mh+openssh-bugzilla>
Component: sshAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED DUPLICATE    
Severity: enhancement CC: dtucker, josh
Priority: P2    
Version: 5.2p1   
Hardware: Other   
OS: Linux   

Description Marc 'Zugschlus' Haber 2009-05-03 18:27:37 AEST
Hi,

when one sends an ssh -MNf process to the background, it would be good to be able to kill it later without having to search for it in the process list. An option having it print its pid just before it backgrounds itself would be a great help.

Greetings
Marc
Comment 1 Darren Tucker 2009-05-03 19:37:58 AEST
There's another option: you can use ControlMaster plus "-O exit" for that.  ie.

ssh -MNf -o controlpath=~/ssh/somehost -o controlmaster=yes somehost sleep 10000

then
ssh -o controlpath=~/ssh/somehost -O exit somehost
Comment 2 Josh Triplett 2011-03-03 06:46:50 AEDT

*** This bug has been marked as a duplicate of bug 1473 ***
Comment 3 Damien Miller 2011-09-06 15:32:55 AEST
close resolved bugs now that openssh-5.9 has been released