Subject: Re: ssh-agent support

Re: ssh-agent support

From: Daiki Ueno <ueno_at_unixuser.org>
Date: Mon, 21 Dec 2009 21:22:48 +0900

Simon Josefsson <simon_at_josefsson.org> writes:

> I should have said that I tried the ssh2_agent example with my OpenPGP
> smartcard, and authentication worked! So libssh2 now support smartcard
> based SSH. Cool!

I should also have tried with my OpenPGP card, but good to hear!
Probably you are using gpg-agent as ssh-agent?

> However there seems to be a glitch:
>
> jas_at_mocca:~/src/libssh2 master$ ./example/ssh2_agent 192.168.1.124 root
> Authentication with username root and public key cardno:000500000139 succeeded!
> Fingerprint: 87 25 0B E3 95 8B 27 0F A3 4D BB 80 BE 49 3A C3
>
> This hangs.

Ah, ssh2_agent seems to request userauth-list after successful
authentication - that was my mistake on cut&paste from ssh2.c. I was
satisfied with the "succeeded!" message, sorry.

The attached patch will fix this.

Regards,

-- 
Daiki Ueno

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Received on 2009-12-21