Problem (Guacamole 1.4 while connecting to an RDP server):
…and in logs:
guacamole guacd[2390]: RDP server closed/refused connection: Security negotiation failed (wrong security type?)
Possible explanation:
- https://issues.apache.org/jira/browse/GUACAMOLE-1249
- https://github.com/SingularityApp/guacamole/blob/main/.graph/Debug/Patch/Systemd%20breaks%20RDP.md
Solution:
nano /etc/systemd/system/guacd.service # replace User=daemon with User=root
systemctl daemon-reload
systemctl restart guacd
Please, don’t do this, except for temporary troubleshooting on a test system. Running the guacd daemon as root is a substantial security risk.
It may also not resolve the problem, depending on what the root cause is.
Instead:
– *temporarily* run guacd as root, as suggested here.
– If that solves the problem, the problem is a permissions issue on some file, possibly on /data.
– Fix the permissions issue.
– Also keep in mind that SELinux or AppArmor can be a problem.
– Change guacd back to run as user guacd/guacd