From owner-freebsd-questions@FreeBSD.ORG Mon Apr 12 13:12:28 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B2E016A4D2 for ; Mon, 12 Apr 2004 13:12:28 -0700 (PDT) Received: from mail.elvandar.org (cust.94.120.adsl.cistron.nl [195.64.94.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 39AC543D55 for ; Mon, 12 Apr 2004 13:12:25 -0700 (PDT) (envelope-from remko@elvandar.org) Message-ID: <407AF825.40804@elvandar.org> Date: Mon, 12 Apr 2004 22:12:21 +0200 From: Remko Lodder X-Accept-Language: en-us, en MIME-Version: 1.0 To: RazorOnFreeBSD References: <005301c42097$b175bb90$0f01a8c0@razor> In-Reply-To: <005301c42097$b175bb90$0f01a8c0@razor> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at elvandar.org cc: freebsd-questions@freebsd.org Subject: Re: ssh root denied X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2004 20:12:28 -0000 RazorOnFreeBSD wrote: > Hi everyone, > > I have some troubles with ssh.... > I have a Freebsd server 4.9 working in a closet without screen. > So I would like to use it through ssh from another station with OpenSSH to configure it when I need it. > I can connect with a user login / password, but not with root / password. > Is there any reason ? did I miss something ? It's denied by default, as a security matter. You actually want to login and use 'su -' instead of login as root directly. If you really want to enable it, Edit the file /etc/ssh/sshd_config #PermitRootLogin yes Remove the hash. But, know that it's not secure, and you really don't want that. The login as normal user, (which need to be in the wheel group) and then su -'ing isn't that much work and doesn't take that much time, but it's more secure. Cheers -- Kind regards, Remko Lodder Elvandar.org/DSINet.org www.mostly-harmless.nl A Dutch community for helping newcomers on the hackerscene