From owner-freebsd-questions@FreeBSD.ORG Sun Dec 25 09:27:40 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 26EEC106566C for ; Sun, 25 Dec 2011 09:27:40 +0000 (UTC) (envelope-from jeff.t@mail.com) Received: from mailout-us.mail.com (mailout-us.mail.com [74.208.122.35]) by mx1.freebsd.org (Postfix) with SMTP id D90178FC0C for ; Sun, 25 Dec 2011 09:27:39 +0000 (UTC) Received: (qmail invoked by alias); 25 Dec 2011 09:27:38 -0000 Received: from unknown (EHLO [192.168.2.192]) [78.84.110.116] by mail.gmx.com (mp-us011) with SMTP; 25 Dec 2011 04:27:38 -0500 X-Authenticated: #76218138 X-Provags-ID: V01U2FsdGVkX1+wCAN/cb2wULsjolkD4FxgphVcGdRRZGJsSYdsmj FbWOhiy5dyIbtn Message-ID: <4EF6EC89.9050405@mail.com> Date: Sun, 25 Dec 2011 11:27:37 +0200 From: Jeff Tipton User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111120 Icedove/3.1.16 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4EF653B7.2070500@mykitchentable.net> <4EF6B7C9.7030003@mykitchentable.net> In-Reply-To: <4EF6B7C9.7030003@mykitchentable.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Mailman-Approved-At: Sun, 25 Dec 2011 12:07:00 +0000 Subject: Re: FreeBSD 8 LiveFS - How To Start SSHD? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Dec 2011 09:27:40 -0000 On 12/25/2011 07:42 AM, Drew Tomlinson wrote: > On 12/24/2011 9:05 PM, Adam Vande More wrote: >> On Sat, Dec 24, 2011 at 4:35 PM, Drew Tomlinson >> > wrote: >> >> >> I can do the "Configure the network connection", the "setup login >> shell for root", and the "Prepare SSH" part. However the "Enable, >> configure, and start sshd" part doesn't seem to apply and really >> doesn't make sense. >> >> Bottom line is that after running /mnt2/use/sbin/sshd, I can see >> the process in ps output. However when I attempt to connect to >> sshd as root, my connection is immediately closed. >> >> >> >> ssh -vv > > Thank you. That led me to know that my host.allow file wasn't right. > Fixed that. Now failing when keyboard-interactive packet is sent. > Thinking it's the PermitRootLogin yes problem. Have created a > sshd_config file set to yes and used the -f /path/to/file switch when > starting sshd. Have also tried using -o 'PermitRootLogin yes' when > starting. Still not > > Thanks for your help. > > Drew > It is the default behavior of sshd to reject root, and the reason is security. I, personally (and I think most of the guys there out), just leave it that way. Just access your server with "ssh @, and then issue "su" command to become root. It will ask you the root password which you should know if you installed the system. When you have done all the system maintenance that you wanted, press -d. It will move you back to your personal shell and environment, out of root privileges. Press the -d the second time, and you are disconnected from your server.