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 1IUu1c-0006Io-HY for garchives@archives.gentoo.org; Tue, 11 Sep 2007 00:54:44 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l8B0jdFk015158; Tue, 11 Sep 2007 00:45:39 GMT Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.248]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l8B0eTC5009006 for ; Tue, 11 Sep 2007 00:40:29 GMT Received: by an-out-0708.google.com with SMTP id c8so200985ana for ; Mon, 10 Sep 2007 17:40:29 -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=tuHAyayGBSDmOkfzea1CVgScyQj+a3CXz9/p39AvyMw=; b=po2zOoaOJTDY1uyrv2hq+ZsTqSd677V9OOuFA6+97geQT053nOfbcImAmImZpYicUnVNyxFCH8dCTDRCZ+4gzMioRYsDJNABBnDFK7nUeR9mJDzmsN7pH+Ml4sFuELjFQk0NTXjhDb3Kfu27rGxJnfobw8f96H4LvgVV2sry9RI= 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=TghAQ3AZyKzJ+Jq6dzctGNIiZpkpv6jbOdOuhP65SSxBBWjn41Lj1azwWJDGecSHmtd0a++/WFzzpJeFgB5vlPoT+3D6NNa80FhaR0tcnjr3doFMiijKR3Mg9fuSBdovZXCffoJsZfMb3odflZle6myfzOq4IEBoAGJMzsIbmmk= Received: by 10.100.105.18 with SMTP id d18mr5495810anc.1189471228809; Mon, 10 Sep 2007 17:40:28 -0700 (PDT) Received: by 10.100.95.6 with HTTP; Mon, 10 Sep 2007 17:40:28 -0700 (PDT) Message-ID: Date: Mon, 10 Sep 2007 19:40:28 -0500 From: "Stephen Wittig" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] SSH won't restart In-Reply-To: <49bf44f10709101634n5329f7e5n4983d275422627a2@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> <46E5877E.1030702@buanzo.com.ar> <46E598B1.9080606@buanzo.com.ar> <49bf44f10709101634n5329f7e5n4983d275422627a2@mail.gmail.com> X-Archives-Salt: ebc48155-1a2c-4867-8cd7-f9514be5849f X-Archives-Hash: da8a2ae3887a0789d53ff41a367f2614 The current init script will not try to restart the daemon if everything does not exit cleanly. We already know that the main process won't exit cleanly since it was manually killed. Unless you are comfortable editing the init script I would suggest: 1) Type: ps auxww |grep /usr/sbin/sshd |grep -v grep This will give you the process id of the current sshd daemon. Write it down for later use. 2) On the following page, do steps 1 and 2 (I know this article is specifically related to upgrading sshd on redhat, but these steps are the same for gentoo): http://www.hackinglinuxexposed.com/articles/20020319.html This will give you a temporary sshd server, so that we can kill off all of your old sshd process, while still giving you access to the machine. It will also make sure that there are not any configuration problems with your current sshd_config file that are preventing the daemon from starting. If this copy of sshd daemon won't start then we know the problem is a configuration error or that the binary somehow became corrupted. 3) Kill off the current sshd process from step 1 kill -TERM sshd_pid -- or -- kill -KILL sshd_pid 4) Type: /etc/init.d/sshd zap DO NOT USE the stop or restart commands - they will kill off your temporary ssh server from step 2 5) Type: /etc/init.d/sshd start 6) Try connecting to your server as you normally would. If everything is working, then your can kill off the ssh daemon running on the alternate port. If it still doesn't start then its off two round three problem solving... -Good Luck, Stephen On 9/10/07, Grant wrote: > > For Grant: > > I reread the init script for sshd, and I know see what was most likely > > the problem. The init script, now, tries to kill all instances with > > the process name of sshd, not just the daemon (as specified by the pid > > file). This is why you were locked out when trying to restart the > > daemon. If you can restart the machine, everything should be working > > fine after a reboot. This behavior differs from every other distro of > > linux that I have used, and with previous versions of the init script. > > Sorry I missed that before emailing the list last time. > > That's alright, I really appreciate your attention. One thing though. > Your init script discovery doesn't explain why sshd wouldn't restart > (stop actually) when I was logged in does it? Given that, do you > still think restarting is the way to go? I'm just trying to make sure > I don't restart and still not have access. That would be bad because > there is a crucial daemon running now that won't come up > automatically. > > Please tell me what you think. > > - Grant > -- > gentoo-user@gentoo.org mailing list > > -- gentoo-user@gentoo.org mailing list