2009/2/6 <ll...@163.com> > I ran into a problem. I was successfully authenticated with the SSH server > using libssh2_userauth_password and libssh2_userauth_publickey_fromfile with > empty passphrase. However, when I tried to use a private key protected by a > passphrass, I NEVER succeed. > I decided to take a look at the libssh2 source code before I ask but I > quickly found that libssh2 seems to totally ignore passphrase: > > Is this a known problem or a planning feature? I am looking at the latest 1.0.
Your question has gone unanswered for quite a while now which is in itself an answer :P I Think its fair to assume that this is something that simply hasn't been implemented yet. There is only a very small group of developers working on libssh2 so this is not a surprise. If you feel like doing the work, a patch would be very welcome. IIRC the public-key-auth functions leave someting to be desired. For instance they require both the public and private keys to be passed when it should really be possible to derive the former from the latter. Not what you wanted to hear, I imagine. Alex ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ libssh2-devel mailing list libssh2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libssh2-devel