Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Mar 2004 08:33:07 -0600
From:      Nathan Kinkade <nkinkade@ub.edu.bz>
To:        Stephen Liu <satimis@icare.com.hk>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: SSH Problem
Message-ID:  <20040301143307.GC11958@nkinkade.bmp.ub>
In-Reply-To: <200403020152.37627.satimis@icare.com.hk>
References:  <200403020152.37627.satimis@icare.com.hk>

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

--R+My9LyyhiUvIEro
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Mar 02, 2004 at 01:52:37AM +0800, Stephen Liu wrote:
> Hi all folks,
>=20
> FreeBSD 5.2
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>=20
> I can as 'root'
>=20
> # ssh -X user@localhost
>=20
> tunneling to 'user' but it does not work as 'user'
>=20
> $ ssh -X root@localhost
> Password: <root psword>
> Password: <root psword>
> Password: <root psword>
> root@localhost.localdomain's password: <root psword>
> Permission denied, please try again.
> root@localhost.localdomain's password: <root psword>
> Permission denied, please try again.
> root@localhost.localdomain's password: <root psword>
> Permission denied (publickey,password,keyboard-interactive).
>=20
> Kindly advise how to fix this problem
>=20
> TIA
>=20
> B.R.
> Stephen Liu

You say that this works as root, but your example seems to indicate
otherwise.  By default, root logins via ssh is disabled in the sshd
config file, usually at /etc/ssh/sshd_config.  If for some reason you
want to allow root logins via ssh then uncomment the following line and
change "no" to "yes" - then restart sshd:

PermitRootLogin yes

However, I think this would generally be frowned upon from a security
standpoint.

Nathan
--=20
gpg --keyserver pgp.mit.edu --recv-keys D8527E49

--R+My9LyyhiUvIEro
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQFAQ0mjO0ZIEthSfkkRAgJqAKCctBcnocZBRgDIO4/I2n14g5jOIQCgvrL/
xYSkNsc3FEI42nrcw6zVBBU=
=bDU8
-----END PGP SIGNATURE-----

--R+My9LyyhiUvIEro--



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