rustdesk-server icon indicating copy to clipboard operation
rustdesk-server copied to clipboard

Key mismatch

Open pleibling opened this issue 9 months ago • 5 comments
trafficstars

Describe the bug I can not connect between two clients on my own ID Server.

Describe the environment Ubuntu 22.04 minimal Server All updates installed Docker Version of Rustdesk installed (newest Version). Firewall Ports are correct Worked a long time without errors, errors comes after an update

How to Reproduce the bug Steps to reproduce the behavior:

  1. I can not connect to an other Rustdesk via my ID Server
  2. But i get the error "Key mismatch" and can not connect

Expected behavior Connnecting, it worked long time ago

Additional context It has a long time worked well, but after an update i can not connect between clients. So i stop the container, remove the datafolder, cleanup Docker, wget rustdesk.com/oss.yml -O compose.yml. Then i uninstall on two windows 10 Clients rustdesk, remove the rest of the folder (userdata, programdata), install the newest version But every time the same error

Notes

  • Please write in english only. If you provide some images in different languages, you're required to write a translation in english.
  • In any case, NEVER put here the content if your id_ed25519 file

pleibling avatar Feb 15 '25 15:02 pleibling

Confirmed with the same error with the docker tag: 1.1.14

zmk5566 avatar Mar 05 '25 10:03 zmk5566

I just encountered this error after I performed an upgrade of docker-ce and rebooted my server. Luckily I solved it by recreating the docker containers by docker compose down && docker compose up -d.

I wonder if it is a version update of docker-ce that caused the error.

mchobbylong avatar Mar 11 '25 16:03 mchobbylong

I can confirm the issue after updating docker-ce. However, I have RustDesk running natively, installed from a DEB package. I'm unsure docker-ce has something to do with it. It turned out that there are two sets of keys, at /opt/rustdesk/ and at /var/lib/rustdesk-server/. I've copied the keys and the database from the former location to the latter and restarted rustdesk-hbbs.service. After several seconds, I could connect.

StSav012 avatar Mar 22 '25 15:03 StSav012

注意他会在服务器生成两个 id_ed25519.pub 文件 Note that it will generate two id_ed25519.pub files on the server.

find / -name id_ed25519.pub

安装目录的 id_ed25519.pub 是错的 ,另一个一个才是对的 The id_ed25519.pub in the installation directory is incorrect; the other one is the correct one.

Image

lw94 avatar May 13 '25 08:05 lw94

I have a similar error message (but in french :) ), but only when trying to connect Linux Client on Ubuntu 22.04 (Wayland, Flatpak) to my Windows PC. The same Windows PC can flawlessly control the Ubuntu Client either by accepting the connection or entering the password. I don't know why the error happens only one way :/

seboss666 avatar May 16 '25 21:05 seboss666