Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
authentication with rsa key does not work
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Sebastian2002
n00b
n00b


Joined: 13 Sep 2004
Posts: 10
Location: Cologne/Germany

PostPosted: Fri Feb 04, 2005 8:59 pm    Post subject: authentication with rsa key does not work Reply with quote

Hi
I have copied my ~/.ssh/id_rsa.pub to a suse machine and now i can login without password.
Then i have tried the same in the other direction but now the login breaks.
Quote:
OpenSSH_3.8p1, SSH protocols 1.5/2.0, OpenSSL 0.9.7d 17 Mar 2004
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to keimes.dyndns.org [81.173.155.90] port 22.
debug1: Connection established.
debug1: identity file /home/user1/.ssh/identity type -1
debug1: identity file /home/user1i/.ssh/id_rsa type 1
debug1: identity file /home/user1i/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_3.9p1
debug1: match: OpenSSH_3.9p1 pat OpenSSH*
i have set
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.8p1
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: expdebug1: Host 'host' is known and matches the RSA host key.
debug1: Found key in /home/user1i/.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,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/user1/.ssh/identity
debug1: Offering public key: /home/user1/.ssh/id_rsa
Connection closed by 81.173.155.90

I have set RSAAuthentication to yes in my /etc/ssh/sshd_config.
Can somebody give me some tips what could be wrong?
i've spent 7 hours with this problem and i am running out of ideas :(
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Fri Feb 04, 2005 10:55 pm    Post subject: Reply with quote

Can you login normally this way ?
Did you copy/accept the host key in the opposite direction ?
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
Sebastian2002
n00b
n00b


Joined: 13 Sep 2004
Posts: 10
Location: Cologne/Germany

PostPosted: Sat Feb 05, 2005 9:48 am    Post subject: Reply with quote

Quote:
Can you login normally this way ?

if i delete ~/.ssh/authorized_keys on the remote host (gentoo with openssh) the login works normally.
Quote:
Did you copy/accept the host key in the opposite direction ?

No, i haven't copied any hostkeys in any direction.
If i login into the suse box i get allways asked if i accept the hostkey but without the passwordphras. This would be the next step for me.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum