Hi Paul,

good point.

I will create a Jira to update the documentation.

Thanks,
Regards
JB

On 11/21/2014 08:48 PM, Paul Spencer wrote:
The example in the Karaf 3.0.x “Programmatically Connect” Developers Guide[1] 
uses some deprecated sshd APIs. I have detailed code using the deprecated APIs 
and suggested replacement code.


*** Connect() changed
From:
   ConnectFuture future = client.connect(host, port);
To:
   ConnectFuture future = client.connect(user, host, port);

*** authPassword() changed
From:
   session.authPassword(user, password);
To:
   session.addPasswordIdentity(password);
   session.auth().verify();


Paul Spencer
[1]  http://karaf.apache.org/manual/latest/developers-guide/connect.html


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to