rustdesk / rustdesk/rustdesk-server

Latest release(1.1.12) causes a "key mismatch" error

Open
#474 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Rust
Stars
10.4k
Forks
2.6k
PR merge metrics
No merged PRs in 30d

Description

First of all thank you for making such a good software, you are really great. But I think I ran into a bug. I made sure I entered the correct IP and pub contents, and the home page also said "Ready". The message "key mismatch" was displayed when I tried to connect. If this is a bug please fix it, if not please tell me what is wrong. Please let me know if there is any more information I can provide.
image

My cloud server system is Alpine, here are my installation steps.

1. Release port and download file
1.1 Release port

To manage rules in Alibaba Cloud security group, manually add TCP(21115, 21116, 21117, 21118, 21119), UDP(21116), and select all IPV4. Authorization results are as follows.

1.2 Downloading the file

Connect to the Server over ssh and download the RustDesk Server file. [RustDesk Server lot release address] (https://github.com/rustdesk/rustdesk-server/releases).

# in the /usr/local/ directory
cd /usr/local/
# Use wget to download version 1.1.8-2 (the latest version can be found at the above release address)
Wget HTTP: / / https://github.com/rustdesk/rustdesk-server/releases/download/1.1.12/rustdesk-server-linux-amd64.zip
# unzip
unzip rustdesk-server-linux-amd64.zip
# Rename the decompressed file (easy to manage)
mv amd64 rustdesk
2. Edit OpenRC service files
2.1 Edit the 'hbbs' service file

Create or edit the '/etc/init.d/hbbs' file:

nano /etc/init.d/hbbs

Add the following to the file and make sure the path points to '/usr/local/rustdesk/hbbs' :

#! /sbin/openrc-run

command="/usr/local/rustdesk/hbbs"
command_background=true
pidfile="/var/run/hbbs.pid"
name="HBBS Service"

depend() {
need net
}
2.2 Edit the hbbr service file

Create or edit the '/etc/init.d/hbbr' file:

nano /etc/init.d/hbbr

Add the following to the file and make sure the path points to '/usr/local/rustdesk/hbbr' :

#! /sbin/openrc-run

command="/usr/local/rustdesk/hbbr"
command_background=true
pidfile="/var/run/hbbr.pid"
name="HBBR Service"

depend() {
need net
}
3. Grant execution permission

Give execute permissions to these two service files:

chmod +x /etc/init.d/hbbs
chmod +x /etc/init.d/hbbr
4. Start and add the service to boot
4.1 Starting the Service

Start 'hbbs' and' hbbr 'with the following command:

rc-service hbbs start
rc-service hbbr start
4.2 Adding a Service to Start on

Add services to the default run level to ensure they run automatically at startup:

rc-update add hbbs default
rc-update add hbbr default
  1. Verify that the service is started

After restarting with reboot, run the following command to check the status of the service:

rc-service hbbs status
rc-service hbbr status

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the connection failure with RustDesk Server 1.1.12 on Alpine using the hbbs and hbbr OpenRC services described in the issue. Check the configured server address, public key, and exposed TCP/UDP ports, then compare the connection result with a working configuration. Done means the cause of the key mismatch is identified and a verified fix or required configuration change is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
infrastructure, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.