Quick & Easy: RustDesk Remote Desktop Server with Encryption in Docker Container
Install Server
sudo docker image pull rustdesk/rustdesk-serverdocker run --name hbbs -v $HOME/rusts:/root -td --net=host rustdesk/rustdesk-server hbbs --key _ -r relay.example.com(disable unencrypted connections, add relay server connection)docker run --name hbbr -v $HOME/rusts:/root -td --net=host rustdesk/rustdesk-server hbbr --key _(disable unencrypted connections)sudo docker start hbbs hbbrcat /$USER/rusts/id_ed25519.pub(display the public key for clients)
Open ports in firewall
sudo ufw allow 21115:21119/tcpsudo ufw allow 21116/udp
Setup Client(s)
- Download client from rustdesk.com
- Go to Settings by clicking the three line symbol in the top right corner
- Go to Network
- ID Server:
hbbs.example.com - Relay:
relay.example.com - Key:
Insert Client Key from Setup Server Here
Tips
id@publicto connect to a id on a public serverid@yourserver?key=yourpublickeyfromid_ed25519.pub(to connect to your hbbs server)
Direct IP Connection
- On target,
Settings > Network > Security > Enable Direct IP Access - On your Rustdesk, just type your
Target IP
Resources