From owner-freebsd-questions@FreeBSD.ORG Mon Jan 1 20:53:16 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8FACE16A412 for ; Mon, 1 Jan 2007 20:53:16 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from smtp.utwente.nl (smtp2.utsp.utwente.nl [130.89.2.9]) by mx1.freebsd.org (Postfix) with ESMTP id 1828613C471 for ; Mon, 1 Jan 2007 20:53:15 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from nox.student.utwente.nl (nox.student.utwente.nl [130.89.165.91]) by smtp.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id l01Karox014834; Mon, 1 Jan 2007 21:36:54 +0100 From: Pieter de Goeje To: freebsd-questions@freebsd.org, Grant Peel Date: Mon, 1 Jan 2007 21:36:53 +0100 User-Agent: KMail/1.9.4 References: <000e01c72dae$50b0ec40$6501a8c0@GRANT> In-Reply-To: <000e01c72dae$50b0ec40$6501a8c0@GRANT> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701012136.53372.pieter@degoeje.nl> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact helpdesk@ITBE.utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: pieter@degoeje.nl X-Spam-Status: No Cc: Subject: Re: How to kill dead ssh login X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jan 2007 20:53:16 -0000 On Monday 01 January 2007 15:08, Grant Peel wrote: > Hi all, > > The odd time, my ISP will disconnect me which leaves me with dead remote > sesssions: > > 57696 p0- IEs 0:00.01 tcsh -c su > 57697 p0- IE+ 0:00.03 _su (csh) > 59069 p1 IWs 0:00.00 tcsh -c su > 59070 p1 S 0:00.04 _su (csh) > > constellation# w > 9:05AM up 3 days, 18:06, 2 users, load averages: 0.05, 0.07, 0.02 > USER TTY FROM LOGIN@ IDLE WHAT > mefromremote p0 xxxxxxxx.ca 8:33AM 30 _su (csh) > mefromremote p1 xxxxxxxx.ca 8:50AM - w > > p0 is no longer connected do to a reset. How do I properly kill that > session? > > I have already tried killing and TERMing 57696 and 57697 to no avail. > > -Grant Try killing the responsible sshd process: pyotr@unforgiven:~> w 9:35PM up 19 days, 13:31, 2 users, load averages: 0.60, 0.44, 0.43 USER TTY FROM LOGIN@ IDLE WHAT pyotr p2 nox 9:33PM 1 -tcsh (tcsh) pyotr p3 nox 9:33PM - w pyotr@unforgiven:~> ps x | grep sshd 33240 ?? I 0:00.00 sshd: pyotr@ttyp2 (sshd) 33246 ?? S 0:00.01 sshd: pyotr@ttyp3 (sshd) 33264 p3 R+ 0:00.00 grep sshd pyotr@unforgiven:~> kill 33240 Cheers, Pieter de Goeje