Replies: 1 comment 1 reply
-
I am not familiar with systemd scripts but you may have to to include #!/bin/sh Without the cd command, hbbs and hbbr are not able to pick up the key files. |
Beta Was this translation helpful? Give feedback.
-
The hbbs public and private keys are generated and stored in the same directory as the hbbs executable.
When I run ./hbbs from that same directory all is fine.
However I created a systemd script for starting and stopping hbbs. Installation directory /opt/rustdesk. Systemd handles this fine, but apparently the key is not loaded in hbbs. I get a key error.
When I add the public key to the startup command: /opt/rustdesk/hbbs -k 'thisisthepublickeyformyinstallation' all is fine.
Since this is the public key it does not compromise security. Still it is not very elegant that the key is not taken from the executable directory. When I change the key pair I must remember to update the script.
What am I missing here or what am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions