From owner-freebsd-questions@FreeBSD.ORG Sun Apr 12 16:47:21 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 29221738 for ; Sun, 12 Apr 2015 16:47:21 +0000 (UTC) Received: from mail1.g3.pair.com (unknown [IPv6:2607:f440::4227:372]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0262598A for ; Sun, 12 Apr 2015 16:47:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail1.g3.pair.com (Postfix) with SMTP id EF91A342E5; Sun, 12 Apr 2015 12:47:12 -0400 (EDT) Received: from [192.168.15.76] (unknown [66.233.145.136]) by mail1.g3.pair.com (Postfix) with ESMTPSA id 1510F34266; Sun, 12 Apr 2015 12:47:09 -0400 (EDT) User-Agent: Microsoft-MacOutlook/14.4.8.150116 Date: Sun, 12 Apr 2015 12:46:04 -0400 Subject: Re: Can't login as a root via SSH! From: seklecki seklecki To: jd1008 , Message-ID: Thread-Topic: Can't login as a root via SSH! References: <1422845600355-5985396.post@n5.nabble.com> <54CEE8CF.606@gmail.com> <1422846540252-5985400.post@n5.nabble.com> <54CEEB66.7090306@gmail.com> <1422847311740-5985404.post@n5.nabble.com> <54CEF12D.9080605@gmail.com> In-Reply-To: <54CEF12D.9080605@gmail.com> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Apr 2015 16:47:21 -0000 The proper file is /etc/ssh/sshd_config The only OpenSSH distribution that allows PermitRootLogin=yes after install is OpenBSD's native one. Almost all other portable versions have packaged it so that it is off. You are assumed to make a wheel group user for 1st login, or have remote hypervisor/serial/remote ILOM console access from your WS to your new, in any other modern datacenter environment. ~BAS On 2/1/15 11:38 PM, "jd1008" wrote: > >On 02/01/2015 08:21 PM, williamyun7 wrote: >> which file should i look up? >> >> this is /etc/defaults/rc.conf >> >> i can't find any with root login via ssh from here. >> >> will@FreeBSD-SVR1:~ % cat /etc/defaults/rc.conf >> #!/bin/sh >> >> # This is rc.conf - a file full of useful variables that you can set >> # to change the default startup behavior of your system. You should >> # not edit this file! Put any overrides into one of the >>${rc_conf_files} >> # instead and you will be able to u\