Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Mar 2006 16:31:01 -0500 (EST)
From:      Peter <petermatulis@yahoo.ca>
To:        Huy Ton That <huyslogic@gmail.com>
Cc:        questions@freebsd.org
Subject:   Re: SSHD Help?
Message-ID:  <20060313213101.92934.qmail@web60011.mail.yahoo.com>
In-Reply-To: <4415E1F8.2030904@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--- John Cruz <cruzweb@gmail.com> wrote:

> SSHD will not allow you to log in as root (for security reasons).
> There may be a way to change it, but I don't reccomend it.

This is done by editing /etc/ssh/sshd_config:

PermitRootLogin yes

Then restart the SSH daemon:

kill -HUP <sshd pid>

> Configure a user account to be able to use the su command or install
sudo, then log in
> remotely as a user then su or sudo for administrative tasks.

Allowing a regular user to "su" to root is done by making him a member
of group "wheel".

For sudo, the root user needs to configure /etc/sudoers with the
'visudo' command.  You need to install the sudo package first.

> Huy Ton That wrote:
> > I am sure I am lacking the technical knowledge to get this running
> but.  I
> > setup (more like started) the sshd daemon.  Now I have this system
> setup at
> > home and am just using it for experimenting.  When I try to SSH
> into it, it
> > queries me for my user name, in which case I am logging in as root.
>  I key
> > in roots password (is this password the same as the main root
> password?) and
> > it returns permission denied, please try again.
> >
> > I'm guessing I am not asking the right questions but I was under
> the
> > assumption that the password would be the same as root or whatever
> user I'm
> > trying to login?  Any tutorials?  I'm going crazy :(.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060313213101.92934.qmail>