From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1IUnJz-0002mg-Rw for garchives@archives.gentoo.org; Mon, 10 Sep 2007 17:45:16 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l8AHanv2027909; Mon, 10 Sep 2007 17:36:49 GMT Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.242]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l8AHTAD0017899 for ; Mon, 10 Sep 2007 17:29:11 GMT Received: by an-out-0708.google.com with SMTP id c8so182207ana for ; Mon, 10 Sep 2007 10:29:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=J0LPPI3PH5D0qVv8/ynay5HZMgXYHNFy9Kpz6cg2P2Y=; b=VBSgHW1f0U9vO5lr5fVIIC/V+IhDMxd6Hoqw4oKa2S5PplfHpgbH7hZDWhp/Kgik61iBNm4vlxJsntAXwzFBpNTcXhYXVWjgeKcvvGrg4IXhJzLrhTfSwS6TnOeiAdK8G9BGYjQvC3B0fVAM31lEGVWvi2OQ2UATJy91jCrMB84= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YtL1GdMlsIDtgW+Aluyh7qKtBKVeYCQErZQqja3hZsOSdsvOutJX/FG3u6YYFoxSkykI8Ya46I0JTSI60SkYtnvXGYHIgmzcsUngU+WSleUIN/ENIfzw2OvBGIzMnSpppoeO0LsjhQF2bh2euw4bOv6y2sOzx8ILDHVt1qrDF0Y= Received: by 10.100.37.4 with SMTP id k4mr4870628ank.1189445350147; Mon, 10 Sep 2007 10:29:10 -0700 (PDT) Received: by 10.100.95.6 with HTTP; Mon, 10 Sep 2007 10:29:10 -0700 (PDT) Message-ID: Date: Mon, 10 Sep 2007 12:29:10 -0500 From: "Stephen Wittig" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] SSH won't restart In-Reply-To: <49bf44f10709100958jd3516d7tbdf5bf1e804f412f@mail.gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <49bf44f10709080840k4f64df08r1f3ba9a4e3b4f031@mail.gmail.com> <46E2E590.8030207@usa.net> <49bf44f10709100958jd3516d7tbdf5bf1e804f412f@mail.gmail.com> X-Archives-Salt: 10176e3f-ea45-4d6d-ac57-93d0a6b0fa4c X-Archives-Hash: d1e9afe6141f9b42dcc7deaac44d1b25 This process is the ssh daemon: root 2988 1 0 Sep04 ? 00:00:00 /usr/sbin/sshd Two things: before killing the process with the KILL signal, I would try killing it with TERM kill -TERM 2988 If that doesn't work then kill the process with the KILL signal. I would also use: /etc/init.d/sshd restart This will give the init script a chance to do some cleanup work before restarting -Best of Luck, Stephen On 9/10/07, Grant wrote: > > I just upgraded ssh and when I try to restart I get: > > > > * Stopping sshd ... [ !! ] > > > > I don't see anything about it in '/var/log/sshd/current'. How can I > > figure out what is wrong? I'm a little nervous because I don't want > > to shut myself out of this remote server. > > > > > > I had a similar issue after a previous update to ssh when I went to restart > > it to get it to use the new binaries. One of the nice features of sshd is > > that your current session will say active even if you kill the sshd daemon > > process. Of course, if you get disconnected then you will not be able to > > log back in, so it's good to do what you need to quickly if you do need to > > kill (or if it's really stuck, kill -9) the process. When I had this > > problem I issued a `kill -9 PID_NUMBER && /etc/init.d/sshd start` - just be > > sure that you're killing the /usr/sbin/sshd process and not one of your sshd > > login forks at the same time. > > OK, I've got to be really careful here. I see the following processes > in 'ps -ef': > > root 2988 1 0 Sep04 ? 00:00:00 /usr/sbin/sshd > root 7573 2988 0 07:28 ? 00:00:00 sshd: root@pts/0 > > Should I: > > kill -9 2988 && /etc/init.d/sshd start > > Are you sure? :) > > - Grant > -- > gentoo-user@gentoo.org mailing list > > -- gentoo-user@gentoo.org mailing list