From owner-freebsd-current@FreeBSD.ORG Wed Oct 6 10:17:24 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 60A3A16A4CE for ; Wed, 6 Oct 2004 10:17:24 +0000 (GMT) Received: from virtual.micronet.sk (smtp-r.micronet.sk [213.215.96.238]) by mx1.FreeBSD.org (Postfix) with ESMTP id 96A0843D2F for ; Wed, 6 Oct 2004 10:17:21 +0000 (GMT) (envelope-from danger@wilbury.sk) Received: from danger ([213.215.105.189]) by virtual.micronet.sk (8.12.11/8.12.11) with ESMTP id i96AH57g008968 for ; Wed, 6 Oct 2004 12:17:06 +0200 (CEST) (envelope-from danger@wilbury.sk) Date: Wed, 6 Oct 2004 12:18:03 +0200 From: DanGer X-Mailer: The Bat! (v2.12.00) Business X-Priority: 3 (Normal) Message-ID: <642108949.20041006121803@wilbury.sk> To: current@freebsd.org In-Reply-To: <20041006100204.95468.qmail@web53305.mail.yahoo.com> References: <20041006100204.95468.qmail@web53305.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: Having trouble sharing public/private keys for ssh ... keeps asking for password X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: DanGer List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Oct 2004 10:17:24 -0000 Hello Joe, Wednesday, October 6, 2004, 12:02:04 PM, you wrote: > Ok, this should be easy: > I want to log in from CLIENT to SERVER without being > asked for a password. > On CLIENT, I run: > ssh-keygen -t dsa -b 2048 > as user "test" > and I do not enter a password. Then I copy the .pub > portion of that key over to SERVER and save it as > /usr/home/jerkoff/.ssh/authorized_keys2 ... note that > I save it as authorized_keys2, because it is a dsa key > ... > then I chmod 0600 authorized_keys2 ... > So now I should be able to go to CLIENT and: > ssh jerkoff@SERVER > and log in with no password, right ? Wrong. I get: > % ssh jerkoff@server > Password: > Response: (I hit enter) > jerkoff@server's password: (I hit enter) > Permission denied, please try again. > So ... what am I doing wrong ? save it as ~/.ssh/authorized_keys it doesen't matter, that it is dsa 2048 bit key... > thanks. -- Best regards +----------==/\/\==----------+ | DanGer | | DanGer@IRCnet ICQ261701668 | | http://danger.homeunix.org | +----------==\/\/==----------+