鳄梨酱中的连接错误:远程桌面服务器当前不可用。如果问题仍然存在,请通知您的系统管理员

Connection Error in Guacamole: The remote desktop server is currently unavailable. If the problem persists, please notify your system administrator

我正在尝试在 Digital Ocean Droplet (Ubuntu 18.04) 中设置鳄梨酱。我按照 https://computingforgeeks.com/install-and-use-guacamole-on-ubuntu/ to setup guacamole and used Postgresql to authenticate guacamole by following the instructions provided in https://guacamole.apache.org/doc/gug/jdbc-auth.html#idm46227496294336.

中提供的步骤操作

安装结束,我可以访问 http://droplet-ip:8080/guacamole 上的网页,但是当我尝试通过 RDP 连接到远程计算机时,出现连接错误 'The remote desktop server is currently unavailable. If the problem persists, please notify your system administrator, or check your system logs.'

我检查了远程设备的登录凭据,hostip 和 RDP 端口号,一切正确。我能够在 Windows 中通过远程桌面连接登录到机器。我还可以在另一个 digitalocean droplet 中完美工作的鳄梨酱设置中使用相同的凭据登录到同一台远程机器。

我也尝试过按照 https://wiki.networksecuritytoolkit.org/index.php/HowTo_Setup_Guacamole 中提供的说明使用 docker 安装鳄梨酱,但仍然面临同样的问题。我究竟做错了什么?如果有人能帮我解决这个问题我会很高兴

我终于弄清楚为什么我无法连接到鳄梨酱中的远程设备。

  1. 我的 Digital Ocean Linux droplets 已经安装了 freeRDP。但 Guacamole Server 1.3.0 适用于 freeRDP2。我不得不让鳄梨酱通过 freeRDP2 发送请求。
  2. 我在连接设置中启用了 SFTP。但不知何故,OpenSSH 在远程机器中被破坏,导致连接错误。所以,我禁用了 SFTP。我认为鳄梨酱一开始就尝试建立 RDP 和 SFTP 连接,因此即使其中一个协议失败,也无法建立连接。我不精通鳄梨酱,所以不确定这一点。

解决这些问题后,鳄梨酱能够向远程机器发送连接请求。我使用netstat查看状态,状态为SYN_SENT,但是远程服务器没有响应。问题出在防火墙上。

我在 windows 防火墙中允许 RDP 的端口,但远程机器位于具有外部防火墙的网络中。我在防火墙设备的 NAT 转发允许列表中添加了 Guacamole 服务器 IP,最后我能够与远程机器建立连接。