From owner-freebsd-questions@FreeBSD.ORG Thu Nov 18 12:49:06 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 5D6EA16A4CE for ; Thu, 18 Nov 2004 12:49:06 +0000 (GMT) Received: from out007.verizon.net (out007pub.verizon.net [206.46.170.107]) by mx1.FreeBSD.org (Postfix) with ESMTP id A6DF843D48 for ; Thu, 18 Nov 2004 12:49:05 +0000 (GMT) (envelope-from georgiev@vt.edu) Received: from bburg.bg ([151.199.126.93]) by out007.verizon.net (InterMail vM.5.01.06.06 201-253-122-130-106-20030910) with ESMTP id <20041118124904.GQXH22257.out007.verizon.net@bburg.bg> for ; Thu, 18 Nov 2004 06:49:04 -0600 From: Ivan Georgiev To: freebsd-questions@freebsd.org Date: Thu, 18 Nov 2004 07:49:03 -0500 User-Agent: KMail/1.7.1 References: <200411172035.59370.dsyphers@u.washington.edu> <200411180030.05840.georgiev@vt.edu> <20041118104254.GA12647@catflap.slightlystrange.org> In-Reply-To: <20041118104254.GA12647@catflap.slightlystrange.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200411180749.03385.georgiev@vt.edu> X-Authentication-Info: Submitted using SMTP AUTH at out007.verizon.net from [151.199.126.93] at Thu, 18 Nov 2004 06:49:04 -0600 Subject: Re: CANNOT SSH to my computer X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Nov 2004 12:49:06 -0000 On Thursday 18 November 2004 05:42 am, Daniel Bye wrote: > On Thu, Nov 18, 2004 at 12:30:05AM -0500, Ivan Georgiev wrote: > > Hi, > > > > I am running RELEASE-5-3 and tried to ssh to my machine (sshd is > > running). It asks me 3 times for my password and then quits. The output > > is shown below. However, if I try "ssh localhost" instead of the ip > > address (I am using a DSL connection) everyting is OK. > > [--- snip ---] > > > The message from sshd is: > > > > sshd[41578]: error: PAM: authentication error for XXXX from > > YYY.verizon.net > > The default behaviour for sshd now is to not allow password authentication. > The Password: prompts you see are for the PAM keyboard-interactive > authentication method. To allow straight password authentication, change > 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 Thank you, I changed PasswordAuthentication to 'yes' and this time it asks me 6 times for my password (3 times beginning with "Password:" and another 3 times with "Password for xxxx@yyy.yyy.yyy.yyy) and rejects me again with the same message from sshd. Adding more verbosity didn't help me to understand the problem. I also noticed that my ida_dsa.pub key ends with "ivan@" . Usualy I have seen it ending with "someone@some_address_here". Is this a problem? Thanks again for the help! Ivan