[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Authentication problem


On Friday 04 March 2011 10:31:52 you wrote:
> On 03/03/2011 02:42 PM, Pierre-Yves Fontaniere wrote:
> > Hello ... I'm trying to use libssh0.4.8 on AIX6.1 and have a problem
> > with public key authentication.
> > 
> > My program simply :
> >  - Initialize a session.
> >  - Verify the remote server/key matching.
> >  - Test if pubkey authentication is ok for the remote server.
> >  - Create a private key from the file.
> >  - Calculate public key from the private key.
> >  - Offer this pubkey to the remote server.
> >  - Try to authenticate with this pubkey. And it failed here.
> 
> I launched a sshd server in debugging mode to see why
> "ssh_userauth_pubkey" (specifically it's the function "
> wait_auth_status") returns SSH_AUTH_ERROR.
> And see no problem with connection :
> 
> ...
> debug1: matching key found: file /home/md/.ssh/authorized_keys, line 2767
> Found matching RSA key: 31:30:06:88:0f:25:f4:b5:37:f1:e0:fc:dc:16:d4:60
> debug1: restore_uid: 0/0
> debug1: ssh_rsa_verify: signature correct
> debug2: userauth_pubkey: authenticated 1 pkalg ssh-rsa
> debug1: do_pam_account: called
> debug3: PAM: do_pam_account pam_acct_mgmt = 0 (Success)
> Accepted publickey for md from 134.158.105.104 port 42501 ssh2
> debug1: Entering interactive session for SSH2.
> debug2: fd 4 setting O_NONBLOCK
> debug2: fd 5 setting O_NONBLOCK
> debug1: server_init_dispatch_20
> Received disconnect from 134.158.105.104: 11: Bye Bye
> debug1: do_cleanup
> debug1: PAM: cleanup
> debug3: PAM: sshpam_thread_cleanup entering

Hmm, this is strange. The ssh_userauth_autopubkey uses the same functions and 
works just fine here, have you tried it?

Which OpenSSL version do you have?


Cheers,

	-- andreas

-- 
Andreas Schneider                   GPG-ID: F33E3FC6
www.cryptomilk.org                asn@xxxxxxxxxxxxxx


Follow-Ups:
Re: Authentication problemPierre-Yves Fontaniere <pyf@xxxxxxxxxxx>
References:
Authentication problemPierre-Yves Fontaniere <pyf@xxxxxxxxxxx>
Re: Authentication problemPierre-Yves Fontaniere <pyf@xxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org