From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NHNLq-0007cJ-OS for garchives@archives.gentoo.org; Sun, 06 Dec 2009 20:05:02 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 56549E088C for ; Sun, 6 Dec 2009 20:05:02 +0000 (UTC) Received: from ironport2-out.pppoe.ca (ironport2-out.teksavvy.com [206.248.154.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 2CC77E07DF for ; Sun, 6 Dec 2009 18:36:49 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgUFAPCHG0vO+KN3/2dsb2JhbACBS8ZvjF2CNRuBYwSKHg X-IronPort-AV: E=Sophos;i="4.47,350,1257138000"; d="scan'208";a="50795471" Received: from 206-248-163-119.dsl.teksavvy.com (HELO waltdnes.org) ([206.248.163.119]) by ironport2-out.pppoe.ca with SMTP; 06 Dec 2009 13:36:48 -0500 Received: by waltdnes.org (sSMTP sendmail emulation); Sun, 06 Dec 2009 13:36:39 -0500 From: "Walter Dnes" Date: Sun, 6 Dec 2009 13:36:39 -0500 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Problems setting up sshd on an installation kernel Message-ID: <20091206183639.GA7431@waltdnes.org> References: <20091206144836.GA2599@muc.de> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091206144836.GA2599@muc.de> User-Agent: Mutt/1.5.20 (2009-06-14) X-Archives-Salt: 3602c742-57b1-4382-bd01-6cf6d4c32070 X-Archives-Hash: bd2053de7ae2cd739955ba31db8ab2c5 On Sun, Dec 06, 2009 at 02:48:36PM +0000, Alan Mackenzie wrote > Hi, folks! > > I'm trying to get sshd working on an embryonic Gentoo installation on my > laptop. The reason is that I want to ssh from my nice comfy desktop > system into this laptop to do the rest of the installation stuff. > > The installation kernel with which I'm having problems is: > Linux livecd 2.6.30-gentoo-r8 #1 SMP Tue Nov 3 11:40:51 UTC 2009. > > Having started sshd on my laptop, when I do > > ssh -lroot 192.168.2.101 > > from my desktop, I get prompted for my ssh key's pass phrase, which I > enter. Thereafter, nothing happens, and it continues to happen for a > long, long time. Has your install gotten to the stage where you can chroot and emerge and unmerge. If so, I would suggest the following... 1) unmerge pam. *DO NOT LOGOUT OR REBOOT* 2) put the line sys-libs/pam in /etc/portage/package.mask Create the file if it doesn't exist. 3) emerge shadow *BEFORE YOU LOG OUT OR REBOOT*. Pam is an extra-high-security option that makes sense on a public server with lots of people being able to log in. On a personal laptop it is overkill. There was a comedy album once that was called... "Everything You Know Is Wrong". That describes Pam. The security settings for various services are in totally different files and locations than normal. Are you still booting from the install CD? The way you are running sshd is not how the install manual suggests to do it. The webpage... http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=2 shows that you can pass the kernel options... dosshd passwd=temppassword at bootup, where "temppassword" is a temporary password. This allows you to log in by typing the temporary password. -- Walter Dnes