ssh to root

Jerry McAllister jerrymc at
Thu Jan 21 14:26:30 UTC 2010

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 at 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.


> _______________________________________________
> freebsd-questions at mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"

More information about the freebsd-questions mailing list