Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Cannot login with publickey on sshd
Date: Sat, 29 Nov 2008 12:28:26
Message-Id: 200811291228.19196.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] Cannot login with publickey on sshd by Eric Martin
1 On Saturday 29 November 2008, Eric Martin wrote:
2 > Mick wrote:
3 > > Hi All,
4 > >
5 > > For some reason my Gentoo rsa public key is not liked by 3.9p1-11.el4_7
6 > > sshd, which is running on a CentOS server. On the Gentoo machine I am
7 > > running net-misc/openssh-5.1_p1-r1. This is what it shows:
8 > > ===================================================
9 > > debug1: fd 3 clearing O_NONBLOCK
10 > > debug1: Connection established.
11 > > debug3: timeout: 14835 ms remain after connect
12 > > debug3: Not a RSA1 key file /home/michael/.ssh/id_rsa.
13 > > debug2: key_type_from_name: unknown key type '-----BEGIN'
14 >
15 > It sounds like you're using a pgp public key, is this on purpose?
16 > AFAIK, you need to convert pgp keys -> openssh keys before you use
17 > them. Have you tried making a public key via ssh-keygen?
18
19 Thanks Eric,
20
21 The "------BEGIN" string is I believe from the private key generated using
22 ssh-keygen. If looks like this:
23 =================================================
24
25 -----BEGIN RSA PRIVATE KEY-----
26 Proc-Type: 4,ENCRYPTED
27 DEK-Info: DES-EDE3-CBC, XXXXXXXXXXXX
28
29 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
30 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX... etc.
31 =================================================
32
33 where "XXXXX" is the hash of the key.
34
35 The public key starts with:
36 =================================================
37 ssh-rsa XXXXXXXXXXXXXXXXXXXXX...etc
38 =================================================
39
40 As I mentioned the same ssh key pair seems to work fine with other servers.
41 --
42 Regards,
43 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Cannot login with publickey on sshd Eric Martin <freak4uxxx@×××××.com>