Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 May 2007 10:41:20 -0400
From:      Jerry McAllister <jerrymc@msu.edu>
To:        DSA - JCR <juancr@dsa.es>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: connecting user root with ssh
Message-ID:  <20070529144120.GB28880@gizmo.acns.msu.edu>
In-Reply-To: <11066.217.114.136.135.1180427946.squirrel@llca513-a.servidoresdns.net>
References:  <11066.217.114.136.135.1180427946.squirrel@llca513-a.servidoresdns.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, May 29, 2007 at 08:39:06AM -0000, DSA - JCR wrote:

> Hi all
> 
> I was trying to connect to my FreeBSD 6.2 box with SSH with PUTTY by
> several days with the user "root" and nothing happens, only a denied
> password from FBSD, and a timeout close connection.
> 
> But, a flash came to my mind ;D and then I tried to connect by a different
> user and... "voila", ssh connections came alive !!..
> 
> My question is: if root user is locked to connect by ssh (I think it maybe
> logic, but..)

That is the default and best practice.

> If it is so, how can I make an user that has same priviliges as root (I
> beg your pardon for this newbie question...) I think that wheel group is
> ok but what more?..

If you include your id in the wheel group (add it to the wheel line
in the /etc/group file), then you can log in with that id.  Once you
have logged in, then you can 'su' to root if you know the root password.

> The think is that I need to connect to my FBSD box from outside the office
> in a secure manner and control it,... well, surely you know this ;D

Yes, use ssh to first get logged in.  Then use su to go to root.
It is more secure that way.   

Alternatively, you can use sudo to create a set of things you can
do from your non-root account without logging in as root.   That is
probably even safer.   sudo is in ports.

////jerry

> 
> 
> Thanks in advance
> 
> "The more I learn FreeBSD, the more I love it"
> 
> Juan Coruņa
> Desarrollo de Software Atlantico
> 
> 
> 
> 
> _______________________________________________
> 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: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070529144120.GB28880>