Skip to content

what is difference ssh.net vs ssh.net-netconf #1197

Closed

Description

@peter2145
  1. My program is doing netconf communication. (me is netconf client)
    1-1. When I use 'ssh.net-netconf', all of them(connect/sendreceieve ) success.
    1-2. When I use 'ssh.net', only connect success.
    what difference?

  2. I need host key algorithm "ecdsa-sha2-nistp256". But netconf package has just rsa, dss.
    How can I add "ecdsa-sha2-nistp256" algorithm without ssh.net package?

Activity

  1. Rob-Hague commented on Oct 6, 2023

    @Rob-Hague
    Collaborator

    The SSH.NET-NETCONF package is a fork of this one, with (only) the following changes:

    develop...declspec:SSH.NET:develop

    That could explain why it works.

  2. WojciechNagorski commented on Oct 6, 2023

    @WojciechNagorski
    Collaborator

    @Rob-Hague I'm not familiar with netconf at all. I see what was change in this fork, but for now, I don't know what it does. I need more time to get to know this. Unless @Rob-Hague you know what this is about.

                    var xpath = "/nc:hello/nc:capabilities/nc:capability[text()='urn:ietf:params:netconf:base:1.1']";
    
                    _usingFramingProtocol = ServerCapabilities.SelectSingleNode(xpath, nsMgr) != null
                        && ClientCapabilities.SelectSingleNode(xpath, nsMgr) != null;
  3. Rob-Hague commented on Oct 6, 2023

    @Rob-Hague
    Collaborator

    I am also unfamiliar with netconf

    @peter2145 you may try the above change with the latest code here (which has ecdsa) and see if it works

  4. peter2145 commented on Oct 9, 2023

    @peter2145
    Author

    I using nuget Pkg 'SSH.NET-netconf'.
    How Can I Use the latest PKG?

  5. peter2145 commented on Oct 10, 2023

    @peter2145
    Author

    Also, Is there anything for adding file "ecdsa-sha2-nistp256" algorithm?
    I don't want to use nuget PKG 'SSH.NET'.

  6. Rob-Hague commented on Oct 10, 2023

    @Rob-Hague
    Collaborator

    @peter2145 you should download the code, make the changes to NetConfSession.cs and build it. Then you can add a project reference and see if it works

    image

  7. peter2145 commented on Oct 10, 2023

    @peter2145
    Author

    @Rob-Hague
    I confirmed that it is operating normally.
    The parameters of SendReceiveRPC() change depending on the _usingFramingProtocol variable.
    I think parameter is problem.

    Please reflect the above code in the SSH.NET package.

  8. Rob-Hague commented on Oct 10, 2023

    @Rob-Hague
    Collaborator

    Thanks for checking. There is actually a similar change in PR #946 which seems to also fix the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions