From owner-freebsd-questions@FreeBSD.ORG Thu Jan 21 14:26:30 2010 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 7578E1065672 for ; Thu, 21 Jan 2010 14:26:30 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id 318428FC08 for ; Thu, 21 Jan 2010 14:26:29 +0000 (UTC) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id o0LE9L7Q016988; Thu, 21 Jan 2010 09:09:21 -0500 (EST) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id o0LE9L30016987; Thu, 21 Jan 2010 09:09:21 -0500 (EST) (envelope-from jerrymc) Date: Thu, 21 Jan 2010 09:09:21 -0500 From: Jerry McAllister To: "Aryeh M. Friedman" Message-ID: <20100121140921.GB16927@gizmo.acns.msu.edu> References: <4B57CE44.9060404@gmail.com> <4B57CEB5.2050001@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B57CEB5.2050001@gmail.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org Subject: Re: ssh to root 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: Thu, 21 Jan 2010 14:26:30 -0000 On Wed, Jan 20, 2010 at 10:49:09PM -0500, Aryeh M. Friedman wrote: > I need to set up a machine so that I can type "ssh [host]" as root from > some other host and I get a prompt with super user privs... I already > have set this up for user@host for root and ssh host for normal users... > but root still asks for a password after I set the authorized_keys file > in ~root/.ssh.. I have looked at ssh_config(5) but can't tell what > option (if any) does this... if anyone is coruious the final goal here > is to set up a sysutils/fusefs-ssh for this host (already installed and > working for normal users but want to make it so it is done as root) If you can stand to do it in two steps, put your non-root id in the wheel group (in /ec/group). Then ssh and log as the non-root user and then su(1) to root. As some have said, do not directly log in as root over the net if you can possibly avoid it. ////jerry > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"