Hello,
This is a great library. I made a simple modification so I could use it against a Cisco 2921 and following the Developer's Guide V3.0 I do not even compile.
Code....
System.out.println("Setting up SSH transport client .. ");
SshTransportClient client = new SshTransportClient();
Properties properties = new Properties();
properties.put("host", "xx.xxx.xx.xx");
properties.put("socketTimeout", "5000");
properties.put("port", "22");
properties.put("username", "user");
properties.put("password", "password");
client.setup(properties);
System.out.println("SSH transport client setup complete.");
Compilation error....
error: method setup in class SshTransportClient cannot be applied to given types;
client.setup(properties);
required: Properties,HelloResponseProcessorIf
found: Properties
reason: actual and formal argument lists differ in length
1 error
--------------
And tested using HelloResponseProcessorIf as follows but to no avail.
HelloResponseProcessorIf htIf = null;
Element request = XmlUtils.fromXmlFile("c:\\hello.xml");
htIf.processHelloResponse(request);
client.setup(properties, htIf);
client.connect();
Compilation error...
Setting up SSH transport client ..
Exception in thread "main" java.lang.NullPointerException
at testenetconfx.NewClass.main(
Thank's for your help