Thread
:
Returning the PID of a ssh process
View Single Post
#
5
(View Single Post)
14th September 2015
gso
Port Guard
Join Date: Nov 2014
Posts: 35
ssh -D 1080 -CNf -o ExitOnForwardFailure=yes user@host... && pgrep -x -n ssh
Seems to work quite reliably. Having said that there is only ever going to be one ssh process listening on 1080.
gso
View Public Profile
Find all posts by gso