From owner-freebsd-questions@FreeBSD.ORG Thu Nov 18 10:42:56 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A29D16A4CE for ; Thu, 18 Nov 2004 10:42:56 +0000 (GMT) Received: from catflap.slightlystrange.org (cpc2-cmbg1-3-0-cust94.cmbg.cable.ntl.com [213.107.104.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id 134F543D1F for ; Thu, 18 Nov 2004 10:42:56 +0000 (GMT) (envelope-from root@slightlystrange.org) Received: from root by catflap.slightlystrange.org with local (Exim 4.43 (FreeBSD)) id 1CUjkc-0003Jn-Kl for freebsd-questions@freebsd.org; Thu, 18 Nov 2004 10:42:54 +0000 Date: Thu, 18 Nov 2004 10:42:54 +0000 From: Daniel Bye To: freebsd-questions@freebsd.org Message-ID: <20041118104254.GA12647@catflap.slightlystrange.org> Mail-Followup-To: freebsd-questions@freebsd.org References: <200411172035.59370.dsyphers@u.washington.edu> <200411180030.05840.georgiev@vt.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KsGdsel6WgEHnImy" Content-Disposition: inline In-Reply-To: <200411180030.05840.georgiev@vt.edu> User-Agent: Mutt/1.4.2.1i Subject: Re: CANNOT SSH to my computer X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Daniel Bye List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Nov 2004 10:42:56 -0000 --KsGdsel6WgEHnImy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 18, 2004 at 12:30:05AM -0500, Ivan Georgiev wrote: > Hi, >=20 > I am running RELEASE-5-3 and tried to ssh to my machine (sshd is running)= . It=20 > asks me 3 times for my password and then quits. The output is shown below= .=20 > However, if I try "ssh localhost" instead of the ip address (I am using a= DSL=20 > connection) everyting is OK. [--- snip ---] > The message from sshd is: >=20 > sshd[41578]: error: PAM: authentication error for XXXX from YYY.verizon.n= et The default behaviour for sshd now is to not allow password authentication.= =20 The Password: prompts you see are for the PAM keyboard-interactive=20 authentication method. To allow straight password authentication, change= =20 this line in /etc/ssh/sshd_config: #PasswordAuthentication no to this: PasswordAuthentication yes Note the removal of `#'! and then: # /etc/rc.d/sshd restart If you want to use public key authentication, then try your session again but with two or even three `-v' flags to get more debugging messages. This should give you more idea of what's going on. HTH Dan --=20 Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ --KsGdsel6WgEHnImy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBnHyphvzwOpChvo8RAmHoAJ9rE/KSaWH/jA9JOf2798CAWXppuwCgsT1e I0z3npgIwpJeQ3ZHa8TC+48= =WUO2 -----END PGP SIGNATURE----- --KsGdsel6WgEHnImy--