rustdesk-server
rustdesk-server copied to clipboard
Latest release(1.1.12) causes a "key mismatch" error
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.
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
- 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
I have the same problem since I need to use Rust Desk and I see the same error, used with a custom server from Docker.
I installed rustdesk-server with docker and it is running normally
Finding your public key may be under the root path '/'.You may have used a wrong key.
Finding your public key may be under the root path '/'.You may have used a wrong key.
When you start the program using init.d and since you didn't specify the working directory of the program, this key may be generated under the root path '/' instead of '/usr/local/rustdesk/'.
Hello! Sorry for my bad English.
I have the same problem after upgrade to version 1.1.12 (hbbr, hbbs).
I try run this command:
./rustdesk-utils doctor rustdesk-server
and output:
Checking server: rustdesk-server
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Custom { kind: Other, error: "failed to lookup address information: Try again" }', src/utils.rs:132:70
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Then I run this command:
./rustdesk-utils validatekeypair [my_key].pub [my_key]
and output:
Invalid secret key
How I upgraded app:
1 download hbbs & hbbr 1.1.12
2
sudo dpkg -i rustdesk-server-hbbr_1.1.12_amd64.deb
sudo dpkg -i rustdesk-server-hbbs_1.1.12_amd64.deb
3 show version:
hbbs --version
hbbr --version
output:
hbbr --version
hbbr 1.1.12
hbbs --version
hbbs 1.1.12
Now I rollback my server to previous version and can connect to my client.
This is a severe issue. I don't get it; why don't they fix it for serval months? Related to https://github.com/rustdesk/rustdesk-server/issues/445
figure out, the correct public key is in /var/lib/rustdesk-server/
@cdb0y511 NB plus.