Re: Is it possible to connect to a Linux box that is just running SSH2 for a Test?

189 views
Skip to first unread message

carl roberts

unread,
Apr 12, 2012, 9:40:41 PM4/12/12
to NetconfX
BTW,

In the test case where I pass the path to the private key via the certificate option, there is no pass phrase, therefore, I am not passing a password option.

On 4/12/2012 9:37 PM, Carl Roberts wrote:
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

Carl Roberts

unread,
Apr 12, 2012, 9:37:36 PM4/12/12
to NetconfX

A.V.

unread,
Apr 13, 2012, 9:11:50 AM4/13/12
to netc...@googlegroups.com
You cannot just connect to a regular SSH server; you need to connect to a NETCONF server.
If you take a look at the NETCONF RFC, you will see that it uses the "netconf" subsystem over SSH, a regular server would have not support for that.

Gautam Chitupolu

unread,
May 2, 2012, 2:29:12 AM5/2/12
to netc...@googlegroups.com
Are there any good netconf servers/simulators that I can use for trying out.

Gautam

jwagner

unread,
May 2, 2012, 7:52:41 AM5/2/12
to netc...@googlegroups.com
Gautam,

You can download Yuma from http://www.yumaworks.com/yuma

It's an open source Netconf server/agent.
NetconfX has ben tested against it.

premila...@googlemail.com

unread,
Oct 12, 2015, 8:41:28 AM10/12/15
to NetconfX
Hi,

Any free netconf servers/simulators for testing.

A.V.

unread,
Oct 12, 2015, 9:10:15 AM10/12/15
to NetconfX, carl.robe...@gmail.com
Reply all
Reply to author
Forward
0 new messages