尝试使用 Remmina 连接到 Windows 计算机时出错

尝试使用 Remmina 连接到 Windows 计算机时出错

我有 ubuntu 22.04,我正在尝试使用 Remmina 连接到本地 Windows 计算机。我可以使用远程桌面从另一台 Windows 计算机连接到同一台 Windows 计算机。当我尝试连接 Remmina 时,我收到以下错误:

This window can help you find connection problems.
You can stop and start the logging at any moment using the On/Off switch.
The stats button (Ctrl+T), can be useful to gather system info you may share when reporting a bug.
There is more info about debugging Remmina on https://gitlab.com/Remmina/Remmina/-/wikis/Usage/Remmina-debugging
(DEBUG) - (rcw_map_event) - Mapping: RemminaConnectionWindow
(DEBUG) - (remmina_protocol_widget_map_event) - Calling plugin mapping function
(DEBUG) - (remmina_protocol_widget_open_connection_real) - Opening connection
(DEBUG) - (remmina_rdp_event_init) - Disable smooth scrolling is set to 0
(DEBUG) - (remmina_rdp_event_init) - Adding GDK_SMOOTH_SCROLL_MASK
(DEBUG) - (remmina_protocol_widget_open_connection_real) - Have SSH
(DEBUG) - (remmina_rdp_main) - RDP data path is /home/xyz/.local/share/remmina/RDP
(DEBUG) - (remmina_rdp_main) - Not using system proxy settings
(DEBUG) - (remmina_rdp_tunnel_init) - Tunnel init
(DEBUG) - (remmina_protocol_widget_start_direct_tunnel) - SSH tunnel initialization…
(DEBUG) - (remmina_protocol_widget_start_direct_tunnel) - Calling remmina_public_get_server_port
(DEBUG) - (remmina_protocol_widget_start_direct_tunnel) - Calling remmina_public_get_server_port (tunnel)
(DEBUG) - (remmina_protocol_widget_start_direct_tunnel) - server: 10.0.0.5, port: 3389
(DEBUG) - (remmina_rdp_tunnel_init) - protocol_plugin_start_direct_tunnel() returned [10.0.0.5]:3389
(DEBUG) - (remmina_rdp_tunnel_init) - Tunnel has been optionally initialized. Now connecting to 10.0.0.5:3389
(DEBUG) - (remmina_rdp_main) - gfx_h264_available: 0
(DEBUG) - (remmina_rdp_main) - Resolution set by the user: 596x440
(DEBUG) - (remmina_rdp_main) - Resolution set after workarounds: 596x440
(DEBUG) - (remmina_rdp_main) - proxy_type: (null)
(DEBUG) - (remmina_rdp_main) - proxy_username: (null)
(DEBUG) - (remmina_rdp_main) - proxy_password: (null)
(DEBUG) - (remmina_rdp_main) - proxy_hostname: (null)
(DEBUG) - (remmina_rdp_main) - proxy_port: 80
(DEBUG) - (remmina_rdp_main) - rdp_keyboard_remapping_list: (null)
(DEBUG) - (remmina_rdp_main) - Log level set to to INFO
(DEBUG) - (rco_on_disconnect) - Disconnect signal received on RemminaProtocolWidget
(DEBUG) - (remmina_file_save) - Saving profile
(DEBUG) - (remmina_file_save) - We have a secret and disablepasswordstoring=0
(DEBUG) - (remmina_plugin_glibsecret_delete_password) - password “password” deleted for file /home/xyz/.local/share/remmina/group_rdp_xyz_10-0-0-5.remmina
(DEBUG) - (remmina_file_save) - We have a secret and disablepasswordstoring=0
(DEBUG) - (remmina_plugin_glibsecret_delete_password) - password “ssh_tunnel_password” deleted for file /home/xyz/.local/share/remmina/group_rdp_xyz_10-0-0-5.remmina
(DEBUG) - (remmina_file_save) - We have a secret and disablepasswordstoring=0
(DEBUG) - (remmina_plugin_glibsecret_delete_password) - password “gateway_password” deleted for file /home/xyz/.local/share/remmina/group_rdp_xyz_10-0-0-5.remmina
(DEBUG) - (remmina_file_save) - We have a secret and disablepasswordstoring=0
(DEBUG) - (remmina_plugin_glibsecret_delete_password) - password “ssh_tunnel_passphrase” deleted for file /home/xyz/.local/share/remmina/group_rdp_xyz_10-0-0-5.remmina
(DEBUG) - (remmina_file_save) - Profile saved
(DEBUG) - (remmina_file_save) - Connection profile states saved
(DEBUG) - (remmina_network_monitor_status) - G_NETWORK_CONNECTIVITY_FULL
(DEBUG) - (rco_on_disconnect) - Could not disconnect

答案1

Remmina 使用 xfreerdp,它使用 openssl 加密通过 RDP 与 Windows 计算机的连接。

Ubuntu 22.04 附带 OpenSSL 3.0。Openssl3 将 tls<1.2 和 sha1 的默认安全级别从安全级别 1 更改为 0。这意味着 Windows 7 和 Windows Server 2008(也许还有 2012?)及更早版本默认将无法运行。

如果您想在尝试获取新版本的 Remmina 之前进行快速测试,只需在 TLS 降级的情况下从终端运行 freerdp:

xfreerdp /v:hostname_or_ip /u:username /p:password /cert:ignore /tls-seclevel:0

Ubuntu 22.04 的最新版本是 Remmina 1.4.25,但这个问题在 Remmina 1.4.26 中已修复截至 2022-07-21,Remmina 当前版本为 1.4.27。

有人讨论将 remmina 1.4.26 反向移植到 Ubuntu 22.04,但在此之前,您可以安装 flatpack、snap 或重新编译的版本。Remmina 有一个 PPA,版本号为 1.4.27,所以一切正常,但它不是定期维护的,可能会落后一两个月。

获得最新版本后,右键单击已保存的 RDP 连接并选择“编辑”。在“高级”选项卡下,将“TLS 安全级别”从默认更改为“0 - 与 Windows 7 兼容”。然后单击“保存并连接”按钮。

Remmina 有一个出色的指南来帮助更新到最新版本。 请注意,flatpak 和 snap 与主题配合得不是很好,所以如果美观对你来说很重要,请安装适用于你的操作系统的软件包。

相关内容