I have tried creating a Client instance to just talk to SSH2 on Linux
at port 22 just for testing (no Netconf Server yet).
I have tried using the username/password and using the username/
certificate and in both cases the code fails.
When I try the username/password, I get this:
Apr 12, 2012 9:32:53 PM
com.centeredlogic.net.netconf.transport.ssh.SshTransportClient send
SEVERE: Exception during NETCONF rpc send
java.lang.RuntimeException: An error occured in the transport layer:
Failed to connect to SSH server: 192.168.56.101 at port:22
at
com.centeredlogic.net.netconf.transport.ssh.SshTransportClient.obtainConnection(Unknown
Source)
at
com.centeredlogic.net.netconf.transport.ssh.SshTransportClient.send(Unknown
Source)
at com.centeredlogic.net.netconf.Client.sendRaw(Unknown Source)
at com.centeredlogic.net.netconf.Client.send(Unknown Source)
at com.centeredlogic.net.netconf.Client.loadDeviceCaps(Unknown
Source)
at com.centeredlogic.net.netconf.Client.setup(Unknown Source)
at netconfxtest.NetConfXTest.main(NetConfXTest.java:32)
When I try the username/certificate, I get an authentication error
like this:
java.lang.RuntimeException: An error occured in the transport layer:
Failed to authenticate user: admin on host: 192.168.56.101
at
com.centeredlogic.net.netconf.transport.ssh.SshTransportClient.obtainConnection(Unknown
Source)
at
com.centeredlogic.net.netconf.transport.ssh.SshTransportClient.send(Unknown
Source)
at com.centeredlogic.net.netconf.Client.sendRaw(Unknown Source)
at com.centeredlogic.net.netconf.Client.send(Unknown Source)
at com.centeredlogic.net.netconf.Client.loadDeviceCaps(Unknown
Source)
at com.centeredlogic.net.netconf.Client.setup(Unknown Source)
at netconfxtest.NetConfXTest.main(NetConfXTest.java:32)
In both cases, putty works.
What is it I have to do to get the Client program to work?
Or, will this kind of test not even work as I am just trying to test
against a regular SSH2 server on Linux and not a NetConf Server?
Thanks,
Joe