Loading... ### 生成密钥 直接通过docker生成,方便快捷 ```bash docker run --rm --entrypoint /usr/bin/rustdesk-utils rustdesk/rustdesk-server-s6:latest genkeypair ``` 输出将如下所示: ```bash Public Key: 8BLLhtzUBU/XKAH4mep3p+IX4DSApe7qbAwNH9nv4yA= Secret Key: egAVd44u33ZEUIDTtksGcHeVeAwywarEdHmf99KM5ajwEsuG3NQFT9coAfiZ6nen4hfgNICl7upsDA0f2e/jIA== ``` ### 使用 Docker 机密存储密钥 编写docker-compose.yaml,将获取到的公钥和私钥填写到env ```bash version: '3' services: rustdesk-server: container_name: rustdesk-server ports: - 21115:21115 - 21116:21116 - 21116:21116/udp - 21117:21117 - 21118:21118 - 21119:21119 image: rustdesk/rustdesk-server-s6:latest environment: - "RELAY=rustdesk.example.com:21117" - "ENCRYPTED_ONLY=1" - "DB_URL=/db/db_v2.sqlite3" - "KEY_PRIV=egAVd44u33ZEUIDTtksGcHeVeAwywarEdHmf99KM5ajwEsuG3NQFT9coAfiZ6nen4hfgNICl7upsDA0f2e/jIA==" - "KEY_PUB=8BLLhtzUBU/XKAH4mep3p+IX4DSApe7qbAwNH9nv4yA=" volumes: - ./db:/db restart: unless-stopped ``` 启动服务 ```bash docker-compose up -d ``` 最后记得去云服务器商的安全组开放2117-21119的tcp和udp端口 ### 项目地址 RustDesk官网:[RustDesk | 开源远程桌面软件](https://rustdesk.com/zh/) RustDesk文档:[RustDesk文档 :: RustDesk文档](https://rustdesk.com/docs/zh-cn/) RustDesk中继服务器项目:[rustdesk/rustdesk-server: RustDesk Server Program (github.com)](https://github.com/rustdesk/rustdesk-server) 最后修改:2024 年 01 月 25 日 © 允许规范转载 赞 1 如果觉得我的文章对你有用,请点个赞哦