鳄梨酱 Windows 10 RDP 失败

Guacamole Windows 10 RDP failed

关于运行的一些背景知识:

我有一个 Windows 10 桌面 运行 Ubuntu 通过 VM.. 在 Ubuntu 的版本 16 上,我有鳄梨酱服务器、guacd 和 tomcat 运行 都很好,没有问题...我可以通过 VM 上的本地主机访问鳄梨酱客户端...现在我可以看到我在加载鳄梨酱客户端时在 user-mapping.xml 文件中创建的 RDP 连接,但是每当我尝试访问它时,我都会在 2 秒内得到一个 "connection error: an internation error has occurred within the guacamole server, and the connection has been terminated."

系统日志除了终端所说的内容("listening on host x.x.x.x, port xxxx")没有其他信息

现在我不完全确定我是否正确设置了连接..我所做的是在我的桌面上启用远程访问(这是 ubuntu 的 VM 所在的位置)并获取了我的计算机 IP(google 我的 ip 是什么)并使用它...这是我的用户示例-mapping.xml 文件

<user-mapping>
<authorize
username="test"
password="testtest">
<connection name="Windows 10">
<protocol>rdp</protocol>
<param name="hostname">x.x.x.x</param> //my desktops ip address (From google)
<param name="port">3389</param>
</connection>
</authorize>
</user-mapping>

您应该检查 IP 地址,因为使用“google what is my ip”不是获取您正在使用的机器的 IP 地址的可靠方法。 Google 将 return public IP 对 Google 可见,这很可能不是您的机器 IP。一个更好的查找 ip 的方法是使用命令 Windows 中的 'ipconfig' 或 Linux 中的 'ifconfig'。

接下来,使用一些桌面 RDP 客户端调试 RDP 连接参数和 IP 地址可能会更容易,因为您可以避免安装 Guacamole 时可能出现的错误。使用例如检查 RDP 连接和 IP 地址是否正确设置'xfreerdp /v:'(应该是来自终端的 运行)。

如果来自 xfreerdp 的连接有效,那么您只能调试 Guacamole 日志,尝试提高调试级别(此处对 Web 应用程序和 guacd 守护程序进行了解释 https://guacamole.incubator.apache.org/doc/gug/configuring-guacamole.html

如果我没理解错的话,您是在尝试从虚拟机到主机的 RDP;这可能会显示带有 VM 的主机桌面,递归地显示主机桌面等等......我不确定这是否可行,最好从另一台机器上尝试。

第一:启用远程控制连接到此计算机;

然后:编辑鳄梨酱连接:

  1. 参数:身份验证:安全性mode:Any
  2. 参数:身份验证:忽略服务器certificate:Checked

具有正确的主机名、端口(3389)、用户名和密码。完成。

鳄梨酱显然不适用于 Windows 10 或 Windows Server 2016 RDP,因此您必须编辑注册表才能使其正常工作。

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp]

将“SecurityLayer”值更改为 1

验证“UserAuthentication”值为 0

来源:https://mangolassi.it/topic/17846/make-windows-10-server-2016-rdp-work-with-guacamole/2

帮我一行

<param name="ignore-cert">true</param>

在 /etc/guacamole/user-mapping.xml