From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.62)
	(envelope-from <gentoo-user+bounces-64670-garchives=archives.gentoo.org@gentoo.org>)
	id 1HtiD1-0000Fo-Mf
	for garchives@archives.gentoo.org; Thu, 31 May 2007 10:48:48 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l4VAlaKO024130;
	Thu, 31 May 2007 10:47:36 GMT
Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182])
	by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l4VAhLJA019275
	for <gentoo-user@lists.gentoo.org>; Thu, 31 May 2007 10:43:21 GMT
Received: by py-out-1112.google.com with SMTP id p76so251778pyb
        for <gentoo-user@lists.gentoo.org>; Thu, 31 May 2007 03:43:20 -0700 (PDT)
DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed;
        d=gmail.com; s=beta;
        h=domainkey-signature:received:received:from:reply-to:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:message-id;
        b=Trynd+AcfnJ+frUf7G68w7tbx4o1y3sgFCVUP9KBREvea5dQxiR0FpwvmXS1YDHvbjVxI+LZa3K5wSPlV4MQp2tAFfWrlZcw7m9btmX9l38CpbT4kPbAWJ9/uStxP4bVWZVww0IFrFFp6LbqJdEy7Fjm68DDHXMfGGA4ed0nJL4=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=beta;
        h=received:from:reply-to:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:message-id;
        b=P2mRaUAo3HdVLUJP4ttWzi/yn98Q+dT7SwBgPI8bA3KFGMJfd9I6zbMOG1M8FH3z/LDYMBtfo4JBgeoXE6JHPTxPOvxEddPQ2x77ys6Ahu24hmcMHWS3olY/vvX7oJt4G6aHEbgB1l2vTsUWglKKS2zGCS4SyK2lvUCPYggGTho=
Received: by 10.65.54.9 with SMTP id g9mr749231qbk.1180608200573;
        Thu, 31 May 2007 03:43:20 -0700 (PDT)
Received: from lappy ( [86.133.184.117])
        by mx.google.com with ESMTP id f4sm1568139nfh.2007.05.31.03.43.19;
        Thu, 31 May 2007 03:43:19 -0700 (PDT)
From: Mick <michaelkintzios@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] [perhaps OT] ssh from Gentoo into a RedHat server
Date: Thu, 31 May 2007 11:42:48 +0100
User-Agent: KMail/1.9.5
References: <200705302058.00119.michaelkintzios@gmail.com> <200705301742.35974.faccenda@gmx.net>
In-Reply-To: <200705301742.35974.faccenda@gmx.net>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: multipart/signed;
  boundary="nextPart2508753.cPyCnvxbyj";
  protocol="application/pgp-signature";
  micalg=pgp-sha1
Content-Transfer-Encoding: 7bit
Message-Id: <200705311142.58519.michaelkintzios@gmail.com>
X-Archives-Salt: 5e6cb30f-8791-4c40-879a-e6b1b03f90d7
X-Archives-Hash: fcb7453e6b9e5bfafed3fcd1b6f49146

--nextPart2508753.cPyCnvxbyj
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Wednesday 30 May 2007 21:42, Mauro Faccenda wrote:
> On Wednesday 30 May 2007 16:57, Mick wrote:

> > I find it confusing.  First of all I do not have a id_rsa.
>
> it tries the default keys (id_rsa or id_dsa), if exists.=20

id_rsa does not exist in my local /home/michael/.ssh/ only id_dsa is there =
and=20
the public key that I have saved in /home/mic/.ssh/authorized_keys on the=20
server is my corresponding id_dsa.pub.

> if you don't want=20
> it to try it, you can use the -i parameter to ssh pointing to your private
> key (ssh -i ~/.ssh/id_dsa <user>@<server>),

Trying with the -i option also fails:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 $ ssh -v -p 22 -i /home/michael/.ssh/id_dsa mick@<blah-blah>
[snip]
debug1: Found key in /home/michael/.ssh/known_hosts:18
debug1: ssh_rsa_verify: signature correct
debug1: Enabling compression at level 6.
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-with-mic,passwo=
rd
debug1: Next authentication method: publickey
debug1: Offering public key: /home/michael/.ssh/id_dsa
debug1: Authentications that can continue: publickey,gssapi-with-mic,passwo=
rd
debug1: Next authentication method: password
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

> > Second, my id_dsa is my private key not my public key.  My public key is
> > id_dsa.pub
>
> but you will need your private key to be authenticated. that's why it is
> *private*.

That's right, so why does it:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
debug1: Trying private key: /home/michael/.ssh/id_rsa <--this doesn't exist
debug1: Offering public key: /home/michael/.ssh/id_dsa <--this is my privat=
e=20
key
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > Is this a server configuration issue, or something to do with my Gentoo
> > set up?
>
> ana in the server you'll need to put your *public* key into
> ~/.ssh/authorized_keys file.

I have of course done this first.

> > PS. Not sure if this is relevant but although my user name on the server
> > is mick, for reasons better known to him the sysadmin has created my ho=
me
> > directory as /home/mic - could it be that sshd is looking for /home/mic=
k?
>
> that messages isn't from the server, is from client running locally. but =
it
> doesnt matter for what you want.

It matters if the server is trying to find id_dsa.pub in a non-existing=20
directory.
=2D-=20
Regards,
Mick

--nextPart2508753.cPyCnvxbyj
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQBGXqaq5Fp0QerLYPcRAuFXAKCWAl3UqY7Uh3rc7EerBlH/FkFP4ACgz5i3
cDUMnE4VD7OwRKWgcbmIQtM=
=04hU
-----END PGP SIGNATURE-----

--nextPart2508753.cPyCnvxbyj--
-- 
gentoo-user@gentoo.org mailing list