dana-i2cat/opennaas — pull request #262 by adrian-rosello (2012-07-18 13:17:21+00:00)
Title: Feature/key auth

This patch adds key authentication support to remote devices. The main changes this pull request includes are:

- Update netconf4java dependency version from 0.0.2 to 0.0.3, which includes key authentication support over ssh sessions.
- Modify ProtocolSessionContext to store all the needed informatiion to authenticate with key: path of the private key file, key passphrase and the authentication type being used.
- Update protocol:context command to get all this information.

Now the user can choose between register a context using the user-password method or the key authentication one. Here you can find an example for both of them:

> protocols:context [resource] [protocol] [authentication-type] [uri] {key-file} {key-passphrase}

Examples :

> protocols:context router:lola netconf password ssh://user:password@remote-host.com

> protocols:context router:lola netconf publickey ssh://user@remote-host.com /home/user/.ssh/my_key my-key-passphrase