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 1IUpPP-0005pp-7k for garchives@archives.gentoo.org; Mon, 10 Sep 2007 19:59:00 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l8AJnHQk029873; Mon, 10 Sep 2007 19:49:17 GMT Received: from alnrmhc12.comcast.net (alnrmhc12.comcast.net [206.18.177.52]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l8AJcLvX014170 for ; Mon, 10 Sep 2007 19:38:25 GMT Received: from spore.ath.cx ([24.245.14.14]) by comcast.net (alnrmhc12) with ESMTP id <20070910193819b1200m17qte>; Mon, 10 Sep 2007 19:38:19 +0000 Received: from pascal.spore.ath.cx (pascal.spore.ath.cx [192.168.1.100]) by spore.ath.cx (Postfix) with ESMTP id 472501E17E for ; Mon, 10 Sep 2007 14:38:15 -0500 (CDT) Date: Mon, 10 Sep 2007 14:38:15 -0500 From: Dan Farrell To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] SSH won't restart Message-ID: <20070910143815.294027ed@pascal.spore.ath.cx> In-Reply-To: <49bf44f10709101223j51dc1138j27f4bd17ad48275f@mail.gmail.com> References: <49bf44f10709080840k4f64df08r1f3ba9a4e3b4f031@mail.gmail.com> <46E2E590.8030207@usa.net> <49bf44f10709100958jd3516d7tbdf5bf1e804f412f@mail.gmail.com> <49bf44f10709101054r13c8b7c4w90f0051ade528dcb@mail.gmail.com> <49bf44f10709101212r26f869d9n2b6c7e6fd1f8395f@mail.gmail.com> <49bf44f10709101223j51dc1138j27f4bd17ad48275f@mail.gmail.com> Organization: Spore, Ltd. X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.13; x86_64-pc-linux-gnu) 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=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 0e1e8edb-43bf-4a19-b9f6-471b85c34581 X-Archives-Hash: cb4f5ac4516bdcc31b712c0e7674ea1f On Mon, 10 Sep 2007 12:23:37 -0700 Grant wrote: > My host is pretty good about issuing commands for me. Any ideas > there? > > - Grant start sshd manually to get back in. something like '/usr/bin/sshd -p 3' (that would listen on port 3 for ssh connections) ("absolute path is necessary for re-exec") I still don't know what happened; here's what I can do: =================================================================== dan@pascal ~ $ ssh root@davey Last login: Mon Sep 10 14:23:18 2007 from pascal.spore.ath.cx davey ~ # ps -eaf | grep sshd root 28869 1 0 14:23 ? 00:00:00 /usr/sbin/sshd root 29147 28869 0 14:34 ? 00:00:00 sshd: root@pts/0 root 29173 29152 0 14:34 pts/0 00:00:00 grep --colour=auto sshd davey ~ # kill -9 28869 davey ~ # ps -eaf | grep sshd root 29147 1 0 14:34 ? 00:00:00 sshd: root@pts/0 root 29186 29152 0 14:35 pts/0 00:00:00 grep --colour=auto sshd davey ~ # /etc/init.d/sshd restart * Stopping sshd ... [ !! ] davey ~ # /etc/init.d/sshd zap * Manually resetting sshd to stopped state. davey ~ # /etc/init.d/sshd start * Starting sshd ... [ ok ] davey ~ # exit logout Connection to davey closed. dan@pascal ~ $ ssh root@davey Last login: Mon Sep 10 14:34:26 2007 from pascal.spore.ath.cx davey ~ # exit logout Connection to davey closed. dan@pascal ~ $ ===================================================================== as you can see, it worked fine for me. I even make sure to use -9. good luck, grant -- gentoo-user@gentoo.org mailing list