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 1IUpst-0000S4-Ow for garchives@archives.gentoo.org; Mon, 10 Sep 2007 20:29:34 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l8AKL47p003682; Mon, 10 Sep 2007 20:21:04 GMT Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.225]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l8AKEMYs026939 for ; Mon, 10 Sep 2007 20:14:27 GMT Received: by nz-out-0506.google.com with SMTP id s18so580990nze for ; Mon, 10 Sep 2007 13:14:21 -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=r0fcEmPaw+tHvfmBnGHOiVYYCZXWna+qPXNRv8rstec=; b=RfJPKO6FY4PoGPg7eTrCdBBHed4Ij+YuL/vrTG9d2yOO/0TN4dclYgYr5qkVWS3U7mrpeRhcABjjzYXiJW/mnjcXsgfWbWQpNFujmCNWqbXDrgPhMGHnQnNbYgXuFZa06JoRVw3vtcLJxhNi/go9M1q7sI0rWOrGkxZTFG37TUQ= 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=H3IXf+8kMdMFbchc8p6yHMmrkQjpJGHAeJLYK9M4AkpJTfmPhVizq4UqwNYyMtow5Ud7IpLn+CKfXCnGt8FER7V0h5FHt6UNtSL2d+A9EhWY223p0T28VSppr3OjBS3jknPJdzn8drsEjREPG4+FLzNyFN+gqbEJENSlI6Dbmsg= Received: by 10.115.47.1 with SMTP id z1mr4948944waj.1189455260133; Mon, 10 Sep 2007 13:14:20 -0700 (PDT) Received: by 10.115.110.15 with HTTP; Mon, 10 Sep 2007 13:14:20 -0700 (PDT) Message-ID: <49bf44f10709101314q3f79e8bahd9111f768e5154b8@mail.gmail.com> Date: Mon, 10 Sep 2007 13:14:20 -0700 From: Grant To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] SSH won't restart In-Reply-To: <20070910143815.294027ed@pascal.spore.ath.cx> 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> <49bf44f10709101054r13c8b7c4w90f0051ade528dcb@mail.gmail.com> <49bf44f10709101212r26f869d9n2b6c7e6fd1f8395f@mail.gmail.com> <49bf44f10709101223j51dc1138j27f4bd17ad48275f@mail.gmail.com> <20070910143815.294027ed@pascal.spore.ath.cx> X-Archives-Salt: 5266585c-8edf-477c-b098-bbdaa3acbcb4 X-Archives-Hash: 6c45512d2a8445e30a8d4de1ce605f91 > > 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 Thank you but doesn't it look like there must be a problem that is preventing my sshd from starting? Won't '/usr/bin/sshd -p 3' just fail, or is that more likely to work than '/etc/init.d/sshd start'? Also, is '/usr/bin/sshd' sufficient? Why not port 22? - Grant -- gentoo-user@gentoo.org mailing list