Gentoo Archives: gentoo-user

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

Attachments

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

Replies

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