RustDesk
is an open-source software that can replace TeamViewer
, aiming to provide a secure and convenient self-hosted solution.
Based on Ubuntu 22.04, sharing a tutorial on setting up a rustdesk
server.
1. Install docker
#
sudo apt install docker.io
2. Pull the rustdesk
server image#
sudo docker image pull rustdesk/rustdesk-server
3. Run the rustdesk
server#
- In the second command,
frp.hyacm.com
is a custom domain name resolving to the server's IP.
sudo docker run --name hbbr -p 21117:21117 -p 21119:21119 -v `pwd`:/root -td --net=host rustdesk/rustdesk-server hbbr -k _
sudo docker run --name hbbs -p 21115:21115 -p 21116:21116 -p 21116:21116/udp -p 21118:21118 -v `pwd`:/root -td --net=host rustdesk/rustdesk-server hbbs -r frp.hyacm.com:21117 -k _
4. Get the rustdesk
server key
#
- This
key
is required when connecting from the client.
cat ./id_ed25519.pub
5. Client configuration#
ID Server
: Enter the server's IP or domain nameRelay Server
: Enter the server's IP or domain nameKey
: Use thekey
obtained in the previous step