ConfD User Community

(kex error : no match for method server host key algo

In my ubuntu machine, I am trying to connect SSH connection from my client application .
Both confd server and client application are in same machine.

While trying to connect build-in confd SSH server, I am getting below error,

[ERR]: Starting the SSH session failed (kex error : no match for method server host key algo: server [ssh-rsa], client [rsa-sha2-512,rsa-sha2-256,ssh-ed25519,ecdsa-sha2-nistp521,ecdsa-sha2-nistp384,ecdsa-sha2-nistp256]).

my confd.conf configuration :

    <!-- Note that the standard port for NETCONF over SSH is 830 -->

ssh_config :

StrictHostKeyChecking no
IdentityFile ~/.ssh/id_rsa
HostKeyAlgorithms ssh-rsa

In my client application, I am using libnetonf2 API(nc_connect_ssh) to connect to build-in ssh server.

Please advise me to resolve this issue.

Can you send the output of your ssh connection attempt with the -v option?