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 :
<ssh> <enabled>true</enabled> <ip>0.0.0.0</ip> <!-- Note that the standard port for NETCONF over SSH is 830 --> <port>2022</port> </ssh>
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.