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

**URL:** <https://dmap-community.ductus.global/t/kex-error-no-match-for-method-server-host-key-algo/3497>\
**Category:** NETCONF\
**Created:** [February 5, 2021, 6:18am UTC](https://dmap-community.ductus.global/t/kex-error-no-match-for-method-server-host-key-algo/3497 "2021-02-05T06:18:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![biranchi1186](https://avatars.discourse-cdn.com/v4/letter/b/ccd318/32.png) [@biranchi1186](https://dmap-community.ductus.global/u/biranchi1186)\
**Post date:** [February 5, 2021, 6:18am UTC](https://dmap-community.ductus.global/t/kex-error-no-match-for-method-server-host-key-algo/3497/1 "2021-02-05T06:18:36Z")

</div>

Hi,  
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>

```

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.

---

<div class="post-metadata">

**Author:** ![waitai](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/waitai/32/436_2.png) [@waitai](https://dmap-community.ductus.global/u/waitai)\
**Post date:** [February 5, 2021, 5:20pm UTC](https://dmap-community.ductus.global/t/kex-error-no-match-for-method-server-host-key-algo/3497/2 "2021-02-05T17:20:03Z")

</div>

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