wallix/pylibssh2 — Issue #7: userauth_publickey_fromfile not implemented? 
Author: bortzmeyer
Created: 2011-10-13 13:29:39+00:00
State: open

When I use, per the documentation:

session.userauth_publickey_fromfile(
"stephane", os.path.expanduser('~/.ssh/id_rsa.pub'), os.path.expanduser('~/.ssh/id_rsa'), "secretphrase")

I get:

Traceback (most recent call last):
File "test.py", line 12, in
"stephane", os.path.expanduser('~/.ssh/id_rsa.pub'), os.path.expanduser('~/.ssh/id_rsa'), "secretphrase")
File "/usr/lib/pymodules/python2.6/libssh2/session.py", line 287, in userauth_publickey_fromfile
raise NotImplementedError()
NotImplementedError

Debian "squeeze" (the stable version) :
Python libssh2 1.0.0

Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40)
[GCC 4.4.5] on linux2