[Linux-disciples] Killing a specific sshd instance
Ken Shan
ken at digitas.harvard.edu
Wed Feb 18 17:40:37 EST 2004
On 2004-02-18T15:39:38-0500, Stephen R Laniel wrote:
> One of my machines at work lost network connectivity, so I lost
> the ssh connection to my home machine. It hasn't timed out yet,
> so I have a dangling TCP connection. Netstat gives me the port
> number of that connection, and ps gives me the process numbers of
> all my sshd instances. Is there any way to figure out which port
> number maps to which sshd instance, so that I can kill the
> appropriate sshd instance?
I bet lsof will do it.
--
Edit this signature at http://www.digitas.harvard.edu/cgi-bin/ken/sig
Be it declared and enacted by this present Parliament ... That the
People of England ... are and shall be and are hereby constituted made
established and confirmed to be a Commonwealth and free State ...
without any King or House of Lords. (1649-05-19) http://papersplease.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20040218/6b2d90d4/attachment-0001.pgp
More information about the Linux-disciples
mailing list