目录
服务端
环境linux
安装
开放端口
客户端配置
下载客户端
安装后配置网络
参考:RustDesk自建远程服务器_rustdesk自建服务器-CSDN博客
服务端
环境
linux
安装
下载
wget https://github.com/rustdesk/rustdesk-server/releases/download/1.1.8-2/rustdesk-server-linux-amd64.zip
解压
unzip rustdesk-server-linux-amd64.zip
重命名解压后文件(方便管理)
mv amd64 RustDesk
hbbr 和 hbbs 程序配置为systemd服务
[root@huaweiyun RustDesk]# vi /etc/systemd/system/hbbs.service
[Unit]
Description=HBBS Server
After=network.target[Service]
ExecStart=/root/rustdesk/RustDesk/hbbs
WorkingDirectory=/root/rustdesk/RustDesk/
User=root
Group=root
Restart=always[Install]
WantedBy=multi-user.target
[root@huaweiyun RustDesk]# vi /etc/systemd/system/hbbr.service
[Unit]
Description=HBBR Server
After=network.target[Service]
ExecStart=/root/rustdesk/RustDesk/hbbr
WorkingDirectory=/root/rustdesk/RustDesk/
User=root
Group=root
Restart=always[Install]
WantedBy=multi-user.target
重新加载 systemd 配置
sudo systemctl daemon-reload
启动服务
systemctl start hbbr
systemctl start hbbs
开机自启
systemctl enable hbbr
systemctl enable hbbs
###Key###
[root@huaweiyun RustDesk]# cat id_ed25519.pub
KtYweq17a2dsdasdK2erwq2oVwQ=
开放端口
- TCP: 21115, 21116, 21117, 21118, 21119
- UDP: 21116
注意:如果只开放21116端口,客户端会提示:rustdesk未就绪,请检查网络连接
连接其他客户端,提示:ID不存在
客户端配置
下载客户端
RustDesk 客户端 Github 发布地址