Skip to Content
Menu
This question has been flagged
1 Reply
1330 Views

As per the notice on my user profile in odoo.sh, I've tried to create an ssh-ed25519 key pair and add the public key via the web interface. However, when trying to ssh into the server, I get the following error message:


"Unable to negotiate with *odooserver* port 22: no matching host key type found. Their offer: ssh-rsa"


Do I have to enable support for ed25519 somewhere else in odoo.sh?

Avatar
Discard
Author Best Answer

EDIT: Don't know why, but I cannot get those links formatted correctly... Copy them and remove any backslashes..

I realized I made the mistake of mixing up host keys with authentication keys. Odoo.sh is using an insecure hash algorithm which was disabled in openssh v8.8 by default: https://www\.openssh\.com/txt/release\-8\.8

More\ info:\ https://sha\-mbles\.github\.io/

Hoping\ odoo\ ugrades\ their\ servers\ with\ more\ modern\ host\ key\ support\.\.\.


A\ workaround\ is\ to\ add\ the\ following\ to\ your\ \~/\.ssh/config\ file\ for\ the\ server\ you\ are\ connecting\ to:

Host\ myserver.odoo.com
    HostKeyAlgorithms +ssh-rsa

Avatar
Discard