From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Jackson Subject: Re: How to kill SSH sessions? Date: Wed, 26 Jun 2002 13:21:02 -0600 Sender: linux-admin-owner@vger.kernel.org Message-ID: <3D1A141D.7F4F7768@wcox.com> References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: List-Id: Content-Type: text/plain; charset="us-ascii" To: "Gary E. Miller" Cc: "Walsh, Ed" , linux-admin@vger.kernel.org "Gary E. Miller" wrote: > Yo Ed! > > Well, the BOFH just kills them all: > > killall sshd; sleep 20; sshd > Let me make sure I understand, you going to kill every ssh login on a "production" server? Just besure to update you resume before you do. And of course as any Linux person worth there salt could tell you, killall -HUP sshd would a better, > > Or do this to see which PID to kill > > pstree -pul | less > > Only newbies use 'ps'... Newbie and Linux users with 7 Years experience David > > > RGDS > GARY > --------------------------------------------------------------------------- > Gary E. Miller Rellim 20340 Empire Blvd, Suite E-3, Bend, OR 97701 > gem@rellim.com Tel:+1(541)382-8588 Fax: +1(541)382-8676 > > On Wed, 26 Jun 2002, Walsh, Ed wrote: > > > Hi all, > > I have one user who's been connected since May of this year. I'd like to > > kill his SSH session but don't know how to do that. Can't seem to find > > anything about how to do that. I've tried restarting the sshd service > > (/sbin/service sshd restart, stop, and start) all don't make a difference. > > Using RedHat 7.1 with OpenSSH. > > - > To unsubscribe from this list: send the line "unsubscribe linux-admin" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html