# Ssh - No matching algo host key

**URL:** <https://forum.gl-inet.com/t/ssh-no-matching-algo-host-key/24323>\
**Category:** Router\
**Created:** [September 27, 2022, 9:33pm UTC](https://forum.gl-inet.com/t/ssh-no-matching-algo-host-key/24323 "2022-09-27T21:33:13Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![donvito7](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/d/f475e1/32.png) [@donvito7](https://forum.gl-inet.com/u/donvito7)\
**Post date:** [September 27, 2022, 9:33pm UTC](https://forum.gl-inet.com/t/ssh-no-matching-algo-host-key/24323/1 "2022-09-27T21:33:13Z")

</div>

I am trying to ssh from my Mango to Ubuntu and I keep receiving:  
**“No matching algo host key”**

Mango:  
Dropbear v2019.78

Ubuntu:  
OpenSSH\_8.9p1 Ubuntu-3, OpenSSL 3.0.2 15 Mar 2022

Any idea?

---

<div class="post-metadata">

**Author:** ![alzhao](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@alzhao](https://forum.gl-inet.com/u/alzhao)\
**Post date:** [September 28, 2022, 2:37am UTC](https://forum.gl-inet.com/t/ssh-no-matching-algo-host-key/24323/2 "2022-09-28T02:37:36Z")

</div>

Can you check if it is the same as

> [@Can no longer ssh into router "no matching host key type found. Their offer: ssh-rsa"](https://forum.gl-inet.com/t/can-no-longer-ssh-into-router-no-matching-host-key-type-found-their-offer-ssh-rsa/20915/11):
>
> The Putty is easy for newbie, so I keep it on the docs. Some customers just want to type some commands. For pro users, they don’t need to read the ssh docs grinning. SSH on windows 10/11 is OK.

---

<div class="post-metadata">

**Author:** ![donvito7](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/d/f475e1/32.png) [@donvito7](https://forum.gl-inet.com/u/donvito7)\
**Post date:** [September 28, 2022, 7:23am UTC](https://forum.gl-inet.com/t/ssh-no-matching-algo-host-key/24323/3 "2022-09-28T07:23:28Z")

</div>

No this is a different story. Windows and putty.  
I ssh from Mango (client) to Ubuntu (ssh server)

I recon Mango needs a newer firmware with the latest Dropbear or some walkaround.

---

<div class="post-metadata">

**Author:** ![alzhao](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@alzhao](https://forum.gl-inet.com/u/alzhao)\
**Post date:** [September 28, 2022, 7:27am UTC](https://forum.gl-inet.com/t/ssh-no-matching-algo-host-key/24323/4 "2022-09-28T07:27:44Z")

</div>

I see. Maybe install openssh in Mango router.

---

<div class="post-metadata">

**Author:** ![donvito7](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/d/f475e1/32.png) [@donvito7](https://forum.gl-inet.com/u/donvito7)\
**Post date:** [September 28, 2022, 7:35am UTC](https://forum.gl-inet.com/t/ssh-no-matching-algo-host-key/24323/5 "2022-09-28T07:35:07Z")

</div>

hmm You are right. It might be a quick fix for now.

---

<div class="post-metadata">

**Author:** ![LupusE](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/lupuse/32/6737_2.png) [@LupusE](https://forum.gl-inet.com/u/LupusE)\
**Post date:** [September 28, 2022, 5:11pm UTC](https://forum.gl-inet.com/t/ssh-no-matching-algo-host-key/24323/6 "2022-09-28T17:11:17Z")

</div>

> [@Ssh issues](https://forum.gl-inet.com/t/ssh-issues/23502):
>
> ssh [root@192.168.8.1](mailto:root@192.168.8.1) Unable to negotiate with 192.168.8.1 port 22: no matching host key type found. Their offer: ssh-rsa from fresh reset can’t ssh into router & windows is not an option.

[…]  
One time:  
ssh -oHostKeyAlgorithms=+ssh-rsa [root@192.168.8.1](mailto:root@192.168.8.1)

Permanent:  
echo -e “\tHostKeyAlgorithms ssh-rsa” \>\> .ssh/config  
[…]

---

<div class="post-metadata">

**Author:** ![mnk](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/mnk/32/15145_2.png) [@mnk](https://forum.gl-inet.com/u/mnk)\
**Post date:** [January 24, 2024, 4:39pm UTC](https://forum.gl-inet.com/t/ssh-no-matching-algo-host-key/24323/7 "2024-01-24T16:39:42Z")

</div>

with Dropbear v2019.78 available options are:

```auto
/usr/bin/ssh -o help
/usr/bin/ssh: Available options:
        ExitOnForwardFailure
        UseSyslog
        Port

```

so I guess `-oHostKeyAlgorithms=+ssh-rsa` is not possible.

`opkg install openssh-client` was my solution. (OpenSSH\_8.0p1 on my gl-ar300m, openwrt-19.07.8)

---

<div class="post-metadata">

**Author:** ![bring.fringe18](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/bring.fringe18/32/11777_2.png) [@bring.fringe18](https://forum.gl-inet.com/u/bring.fringe18)\
**Post date:** [January 25, 2024, 6:15am UTC](https://forum.gl-inet.com/t/ssh-no-matching-algo-host-key/24323/9 "2024-01-25T06:15:17Z")

</div>

> [@SSH-RSA issues](https://forum.gl-inet.com/t/ssh-rsa-issues/31592/2):
>
> ssh -oHostKeyAlgorithms=+ssh-rsa -o "PasswordAuthentication=no" -o "IdentitiesOnly=yes" -i ~/.ssh/id\_rsa\_-\_$myKeyHere (Disregard: Assumes keys already setup.) Confirmed against a OWRT 19.01 x64 VM fr a Deb 12 VM. Welcome to the world of obsolete SHA1. Update your ~/.ssh/config accordingly.

---

<div class="post-metadata">

**Author:** ![LupusE](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/lupuse/32/6737_2.png) [@LupusE](https://forum.gl-inet.com/u/LupusE)\
**Post date:** [January 25, 2024, 10:20am UTC](https://forum.gl-inet.com/t/ssh-no-matching-algo-host-key/24323/10 "2024-01-25T10:20:28Z")

</div>

You are writing of changing the SSH client on the router.  
The question was about SSH client on an Ubuntu to a router.

So, thanks for the information, but not suitable for the solved question one year ago.  
Maybe install another server via opkg would work as well, but to du this you need connection anyways … Maybe via LuCI … But what is the point?

---

<div class="post-metadata">

**Author:** ![mnk](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/mnk/32/15145_2.png) [@mnk](https://forum.gl-inet.com/u/mnk)\
**Post date:** [January 25, 2024, 10:37am UTC](https://forum.gl-inet.com/t/ssh-no-matching-algo-host-key/24323/11 "2024-01-25T10:37:55Z")

</div>

the OP says:

```auto
I am trying to ssh from my Mango to Ubuntu and I keep receiving:
“No matching algo host key”

```

hence mango is the client, and ubuntu is the server,  
apologies if i misunderstood it.

---

<div class="post-metadata">

**Author:** ![LupusE](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/lupuse/32/6737_2.png) [@LupusE](https://forum.gl-inet.com/u/LupusE)\
**Post date:** [January 25, 2024, 10:51am UTC](https://forum.gl-inet.com/t/ssh-no-matching-algo-host-key/24323/12 "2024-01-25T10:51:50Z")

</div>

okay, my fault … I have read it wrong the whole time.

---

<div class="post-metadata">

**Author:** ![bruce](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/bruce/32/35649_2.png) [@bruce](https://forum.gl-inet.com/u/bruce)\
**Post date:** [October 29, 2025, 11:36am UTC](https://forum.gl-inet.com/t/ssh-no-matching-algo-host-key/24323/13 "2025-10-29T11:36:07Z")

</div>


