Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jan 2010 09:09:21 -0500
From:      Jerry McAllister <jerrymc@msu.edu>
To:        "Aryeh M. Friedman" <aryeh.friedman@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ssh to root
Message-ID:  <20100121140921.GB16927@gizmo.acns.msu.edu>
In-Reply-To: <4B57CEB5.2050001@gmail.com>
References:  <4B57CE44.9060404@gmail.com> <4B57CEB5.2050001@gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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"



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20100121140921.GB16927>