Silly SSH question

dsr at tao.merseine.nu dsr at tao.merseine.nu
Sat Apr 2 14:10:13 EST 2005


On Sat, Apr 02, 2005 at 01:59:08PM -0500, Derek Martin wrote:
> On Sat, Apr 02, 2005 at 01:36:31PM -0500, Josh Pollak wrote:
> > The question is, how do I cleanly kill this tunnel? I've been running 
> > 'ps aux | grep ssh', finding the line and killing it, but that seems 
> > kludgy. Is there a 'right way' to do this? 
> 
> Yeah, you just named it. ;-)  Seriously... there isn't any other way.

You know better than to say things like that.

`netstat -ap |grep ssh` to show you the process id while
identifying the TCP connections made.

`grep ssh /proc/*/cmdline` comes to mind as well.

I'm sure there are others.

-dsr-

-- 
Nothing to sig here, move along.



More information about the Discuss mailing list