No matching algo hostkey when using ssh

Can anyone help with it? I cant ssh from GL.Net device to my Ubuntu desktop. It did work bit not any more. Getting an error:
ssh: Connection to root@mydomain.com exited: No matching algo hostkey

I have got 3 Gl.Net devices and this is the same error on all of them.

Can you tell me which routers you have and which ubuntu version you use?

You’d better post the screenshot directly.

GL-MT300N-V2
GL-MT300N-V2
and
GL-AX1800


Ubuntu 5.15.0-27
Description: Ubuntu 22.04 LTS
Codename: jammy

ok I managed to resolve it.

If anyone has got the same problem. Add on your Ubuntu machine in a file /etc/ssh/ssh_config

Three extra lines at the end of the file:

Host ***
** HostKeyAlgorithms ssh-rsa,ssh-dss

** PubkeyAcceptedKeyTypes ssh-rsa,ssh-dss**

1 Like

Glad you find the problem.

Trying to install ubuntu 2204 on Virtual box, host windows 11. Never boot.