<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error using YDK C++ sample app with confd in CentOS 8 stream in Tools</title>
    <link>https://community.cisco.com/t5/tools/error-using-ydk-c-sample-app-with-confd-in-centos-8-stream/m-p/4753986#M884</link>
    <description>&lt;P&gt;Something is missing after 'Their offer:'; it should list the encryption algorithm that your openssh does not understand. Possibly you need to recompile and reinstall &lt;STRONG&gt;openssh&lt;/STRONG&gt; and/or add the missing algorithm into ssh config file&amp;nbsp;&lt;STRONG&gt;~/.&lt;/STRONG&gt; &lt;STRONG&gt;ssh/config &lt;/STRONG&gt;and/or&lt;STRONG&gt; /etc/ssh/ssh_config&lt;/STRONG&gt;. I recommend to google it before making changes. On my Mac I have the following in &lt;STRONG&gt;~/.&lt;/STRONG&gt; &lt;STRONG&gt;ssh/config&lt;/STRONG&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Host 172.xxx.xxx.xxx&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;User admin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;PubkeyAcceptedAlgorithms +ssh-rsa&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;HostkeyAlgorithms +ssh-rsa&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;On my Mac the confd ssh public key generated with algorithm 'ssh-rsa', which is potentially not added on your platform. You can view the key at &lt;STRONG&gt;~/&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;confd/etc/confd/ssh/ssh_host_rsa_key.pub&lt;/STRONG&gt;. The key is generated automatically when confd is installed. Not sure if and how you can regenerate it locally. It is better and&amp;nbsp;&lt;/SPAN&gt;simpler just add the missing algorithm in ssh config file.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jan 2023 23:43:00 GMT</pubDate>
    <dc:creator>ygorelik</dc:creator>
    <dc:date>2023-01-12T23:43:00Z</dc:date>
    <item>
      <title>Error using YDK C++ sample app with confd in CentOS 8 stream</title>
      <link>https://community.cisco.com/t5/tools/error-using-ydk-c-sample-app-with-confd-in-centos-8-stream/m-p/4753256#M881</link>
      <description>&lt;P&gt;I have been able to build the CiscoDevNet YDK C++ core library, Openconfig module bundle, and Cisco_ios_xr module bundle on CentOS 8 stream.&amp;nbsp; Using the C++ samples folder source code and README instructions (from &lt;A href="https://github.com/ygorelik/ydk-gen/tree/master/sdk/cpp/samples" target="_blank"&gt;https://github.com/ygorelik/ydk-gen/tree/master/sdk/cpp/samples&lt;/A&gt;), I was able to build the sample applications.&amp;nbsp; Similarly, using the README instructions, I am able to run the confd router emulator.&amp;nbsp; However, when I attempt to run a sample app, I get an error.&amp;nbsp; For instance,&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;[fisher_m@localhost ydk-gen-master]$ ./test/init_test_env.sh 

*** Wed Jan 11 14:11:55 MST 2023: init_test_env.sh: Initializing confd in /home/fisher_m/YangDevKit/YDK-0.8.6/CiscoDevNet/ydk-gen-master/sdk/cpp/core/tests/confd/ydktest 

*** Wed Jan 11 14:11:55 MST 2023: init_test_env.sh: Found confd resource file: /home/fisher_m/confd/confdrc 
### Killing any confd daemon or DHCP confd agents
/home/fisher_m/confd/bin/confd --stop &amp;amp;&amp;gt; /dev/null   || true
/home/fisher_m/confd/bin/confd -c confd.conf --addloadpath /home/fisher_m/confd/etc/confd --addloadpath /home/fisher_m/confd/src/confd/yang --addloadpath /home/fisher_m/confd/src/confd/aaa

*** Wed Jan 11 14:12:04 MST 2023: init_test_env.sh: Starting REST server 

*** Wed Jan 11 14:12:04 MST 2023: init_test_env.sh: REST server started with PID 249174 

*** Wed Jan 11 14:12:04 MST 2023: init_test_env.sh: Starting TCP server 

*** Wed Jan 11 14:12:04 MST 2023: init_test_env.sh: TCP server started with PID: 249192 
[fisher_m@localhost ydk-gen-master]$ popd
~/YangDevKit/YDK-0.8.6/CiscoDevNet/ydk-gen-master/sdk/cpp/samples/build
[fisher_m@localhost build]$ 
[fisher_m@localhost build]$ ./bgp_create ssh://admin:admin@127.0.0.1:12022 -v
[2023-01-11 14:13:09.712] [ydk] [error] Connection error occurred: Starting the SSH session failed (kex error : no match for method server host key algo: server [], client [ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,rsa-sha2-256,rsa-sha2-512,ssh-rsa])
[2023-01-11 14:13:09.712] [ydk] [error] Could not connect to 127.0.0.1: Session status: Undefined
Error details: YClientError: Could not connect to 127.0.0.1: Session status: Undefined&lt;/LI-CODE&gt;&lt;P&gt;Is there some kind of ssh configuration that I need to do in my CentOS 8 stream environment?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 22:26:03 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/error-using-ydk-c-sample-app-with-confd-in-centos-8-stream/m-p/4753256#M881</guid>
      <dc:creator>Mike Fisher</dc:creator>
      <dc:date>2023-01-11T22:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error using YDK C++ sample app with confd in CentOS 8 stream</title>
      <link>https://community.cisco.com/t5/tools/error-using-ydk-c-sample-app-with-confd-in-centos-8-stream/m-p/4753811#M882</link>
      <description>&lt;P&gt;Try to login to the confd device (example here):&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;(nso-venv) YGORELIK-M-C3GG:test ygorelik$ ssh admin@127.0.0.1 -p 12022 -s netconf&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The authenticity of host '[127.0.0.1]:12022 ([127.0.0.1]:12022)' can't be established.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ED25519 key fingerprint is SHA256:0K9MqvuQuBevJ0ua/NJuP8s3CiO3rRiBIE9z9OxqrDw.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This key is not known by any other names.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you sure you want to continue connecting (yes/no/[fingerprint])? yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Warning: Permanently added '[127.0.0.1]:12022' (ED25519) to the list of known hosts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;admin@127.0.0.1's password:&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;capabilities&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;capability&amp;gt;urn:ietf:params:netconf:base:1.0&amp;lt;/capability&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Connection to 127.0.0.1 closed.&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;This will set the SSH key and print device capabilities. Make sure you can connect, then try the app again.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 17:04:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/error-using-ydk-c-sample-app-with-confd-in-centos-8-stream/m-p/4753811#M882</guid>
      <dc:creator>ygorelik</dc:creator>
      <dc:date>2023-01-12T17:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error using YDK C++ sample app with confd in CentOS 8 stream</title>
      <link>https://community.cisco.com/t5/tools/error-using-ydk-c-sample-app-with-confd-in-centos-8-stream/m-p/4753818#M883</link>
      <description>&lt;P&gt;I got different results then you did.&amp;nbsp; Please see below:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;[fisher_m@localhost build]$ ssh admin@127.0.0.1 -p 12022 -s netconf
Unable to negotiate with 127.0.0.1 port 12022: no matching host key type found. Their offer: &lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 12 Jan 2023 17:15:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/error-using-ydk-c-sample-app-with-confd-in-centos-8-stream/m-p/4753818#M883</guid>
      <dc:creator>Mike Fisher</dc:creator>
      <dc:date>2023-01-12T17:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error using YDK C++ sample app with confd in CentOS 8 stream</title>
      <link>https://community.cisco.com/t5/tools/error-using-ydk-c-sample-app-with-confd-in-centos-8-stream/m-p/4753986#M884</link>
      <description>&lt;P&gt;Something is missing after 'Their offer:'; it should list the encryption algorithm that your openssh does not understand. Possibly you need to recompile and reinstall &lt;STRONG&gt;openssh&lt;/STRONG&gt; and/or add the missing algorithm into ssh config file&amp;nbsp;&lt;STRONG&gt;~/.&lt;/STRONG&gt; &lt;STRONG&gt;ssh/config &lt;/STRONG&gt;and/or&lt;STRONG&gt; /etc/ssh/ssh_config&lt;/STRONG&gt;. I recommend to google it before making changes. On my Mac I have the following in &lt;STRONG&gt;~/.&lt;/STRONG&gt; &lt;STRONG&gt;ssh/config&lt;/STRONG&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Host 172.xxx.xxx.xxx&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;User admin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;PubkeyAcceptedAlgorithms +ssh-rsa&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;HostkeyAlgorithms +ssh-rsa&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;On my Mac the confd ssh public key generated with algorithm 'ssh-rsa', which is potentially not added on your platform. You can view the key at &lt;STRONG&gt;~/&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;confd/etc/confd/ssh/ssh_host_rsa_key.pub&lt;/STRONG&gt;. The key is generated automatically when confd is installed. Not sure if and how you can regenerate it locally. It is better and&amp;nbsp;&lt;/SPAN&gt;simpler just add the missing algorithm in ssh config file.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 23:43:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/error-using-ydk-c-sample-app-with-confd-in-centos-8-stream/m-p/4753986#M884</guid>
      <dc:creator>ygorelik</dc:creator>
      <dc:date>2023-01-12T23:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error using YDK C++ sample app with confd in CentOS 8 stream</title>
      <link>https://community.cisco.com/t5/tools/error-using-ydk-c-sample-app-with-confd-in-centos-8-stream/m-p/4754571#M885</link>
      <description>&lt;P&gt;Thank you for the feedback.&amp;nbsp; I think this may take some time to resolve and I may end up attempting to make the ssh connection on a different machine.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 23:28:14 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/error-using-ydk-c-sample-app-with-confd-in-centos-8-stream/m-p/4754571#M885</guid>
      <dc:creator>Mike Fisher</dc:creator>
      <dc:date>2023-01-13T23:28:14Z</dc:date>
    </item>
  </channel>
</rss>

