You are not logged in.

#1 2008-07-21 14:53:35

T-u-N-i-X
Member
From: İstanbul
Registered: 2006-03-14
Posts: 435
Website

openssh public key authentication problem

Hey There,

Our production server worked very well for almost 2 years now.. Last week, after a regular update, we weren't able to login anymore since it doesn't accept our key.. This is what happens when i try to connect to the server:

[17:42] (tunix@smith ~)$ ssh -v kulupler
OpenSSH_4.7p1 Debian-12, OpenSSL 0.9.8g 19 Oct 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to kulupler [XXX.XXX.XXX.XXX] port 22.
debug1: Connection established.
debug1: identity file /home/tunix/.ssh/identity type -1
debug1: identity file /home/tunix/.ssh/id_rsa type 1
debug1: identity file /home/tunix/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.0
debug1: match: OpenSSH_5.0 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.7p1 Debian-12
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'kulupler' is known and matches the RSA host key.
debug1: Found key in /home/tunix/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
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,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/tunix/.ssh/identity
debug1: Offering public key: /home/tunix/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: /home/tunix/.ssh/id_dsa
debug1: Next authentication method: password
tunix@kulupler's password:

For a few days, we weren't able to connect since we have disabled the password authentication method before.. Thank God, we had physical access to the server, so we enabled it for now.. Can someone please tell me why it asks for password despite it can get the keys..?


Quis custodiet ipsos custodiet?

Offline

#2 2008-07-21 14:55:57

T-u-N-i-X
Member
From: İstanbul
Registered: 2006-03-14
Posts: 435
Website

Re: openssh public key authentication problem

The server is an up2date Arch Linux box and I'm trying to connect by using a Debian box.. note that a friend of mine who also has access to the server (using Arch Linux) has the same issue..


Quis custodiet ipsos custodiet?

Offline

#3 2008-07-22 02:34:36

Shaika-Dzari
Member
From: Québec, Canada
Registered: 2006-04-14
Posts: 436
Website

Re: openssh public key authentication problem

Did you update openssh?
Maybe you could check if you have some .pacnew file with some configuration change hmm

Offline

#4 2008-07-22 08:41:26

T-u-N-i-X
Member
From: İstanbul
Registered: 2006-03-14
Posts: 435
Website

Re: openssh public key authentication problem

I did... There's none noticable change in it.. :S


Quis custodiet ipsos custodiet?

Offline

#5 2008-07-22 12:46:13

T-u-N-i-X
Member
From: İstanbul
Registered: 2006-03-14
Posts: 435
Website

Re: openssh public key authentication problem

someone please ?


Quis custodiet ipsos custodiet?

Offline

#6 2008-10-09 22:35:25

blitux
Member
From: Mendoza, Argentina
Registered: 2008-10-09
Posts: 21

Re: openssh public key authentication problem

I have the same issue.

blitux@myarch$ ssh -V: OpenSSH_5.1p1, OpenSSL 0.9.8i 15 Sep 2008
blitux@debetch$ ssh -V: OpenSSH_5.1p1 Debian-2, OpenSSL 0.9.8g 19 Oct 2007

From debian to debian is ok, but from arch to debian i can't get keys to work. I'm suspecting that this log (maximum vervosity) could lead to some idea about the problem:

blitux@myarch$ ssh myserver.mydebianserver.org -v -v -v -v

[...]
debug1: Next authentication method: publickey
debug1: Offering public key: /home/blituxarch/.ssh/id_dsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password
debug2: we did not send a packet, disable method <--- here, wtf?
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
[...]

I guess that maybe it's a OpenSSL problem... I have 2 different versions of OpenSSL on arch and debian (debian: 0.9.8g, arch: 0.9.8i) I was searching for this issue and it seems to be a general "inter-distro" problem. If you're using the same distro for ssh client and server everything is ok. And T-u-N-i-X, you say that the server was working ok until you updated some packages. This leads to the idea that maybe it's some kind of bug on the new package (or maybe a missconfiguration).

Is there any way to install the old package? (v0.9.8g)

I hope this will be solved. I love arch! and I don't want to use debian in my laptop =P

Last edited by blitux (2008-10-09 23:10:18)


-=[ bLiTux ]=-

Offline

#7 2008-11-21 23:42:21

mukl
Member
From: Vienna, Austria
Registered: 2008-01-30
Posts: 52

Re: openssh public key authentication problem

same problem here.

logging in with public stopped working on my desktop few weeks ago.

just did a fresh install on my laptop. there is no such problem.

any solution?

===
solution:

auth.log told me that "Authentication refused: bad ownership or modes for directory /home/mukl".

so i changed the mode bits of my home back to 755 and everything worked. but i have no idea why and when these bits were set wrong.


pfiateich.

Last edited by mukl (2008-11-22 00:00:15)

Offline

Board footer

Powered by FluxBB