使用 Ubuntu 16.04 LTS x64 和 remmina v1.2.31。
尝试使用 remmina 从 Ubuntu 到与 ubuntu 位于同一有线网络和子网的 Windows8.1 pro 笔记本电脑进行 RDP。
Remmina 连接失败,跟踪显示 ERRCONNECT_CONNECT_FAILED [0x00020006]。
我不知道该错误代码是什么意思。
大约一个月前,它可以与 Remmina 1.1.2 完美兼容,但是今天也开始出现故障,因此我尝试了 v1.2.31。
更新后的版本也失败了,但超时时间更短,诊断功能可能更好。
在谷歌搜索之后,我尝试了下面建议的解决方案(每次都杀死 remmina),但没有效果(相同的症状):
rm -f ~/.config/freerdp/known_hosts
rm -fr ~/.remmina
rm -fr ~/cache/remmina
rm -fr ~/.config/remmina
For the connection, instead of security=negotiate, try NLA, try RDP
跟踪输出显示
~$ export WLOG_LEVEL=trace
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
[15:12:33:473] [8712:9958] [DEBUG][com.freerdp.channels.cliprdr.client] - VirtualChannelEntryEx
[15:12:33:473] [8712:9958] [INFO][com.freerdp.client.common.cmdline] - loading channelEx cliprdr
[15:12:33:474] [8712:9958] [DEBUG][com.freerdp.channels.drdynvc.client] - VirtualChannelEntryEx
[15:12:33:474] [8712:9958] [INFO][com.freerdp.client.common.cmdline] - loading channelEx drdynvc
[15:12:33:474] [8712:9958] [DEBUG][com.freerdp.core.nego] - Enabling security layer negotiation: TRUE
[15:12:33:474] [8712:9958] [DEBUG][com.freerdp.core.nego] - Enabling restricted admin mode: FALSE
[15:12:33:474] [8712:9958] [DEBUG][com.freerdp.core.nego] - Enabling RDP security: TRUE
[15:12:33:474] [8712:9958] [DEBUG][com.freerdp.core.nego] - Enabling TLS security: FALSE
[15:12:33:474] [8712:9958] [DEBUG][com.freerdp.core.nego] - Enabling NLA security: FALSE
[15:12:33:474] [8712:9958] [DEBUG][com.freerdp.core.nego] - Enabling NLA extended security: FALSE
[15:12:33:474] [8712:9958] [DEBUG][com.freerdp.core.nego] - state: NEGO_STATE_RDP
[15:12:33:474] [8712:9958] [DEBUG][com.freerdp.core.nego] - Attempting RDP security
[15:12:33:474] [8712:9958] [DEBUG][com.freerdp.core] - connecting to peer 192.168.1.3
[15:12:48:482] [8712:9958] [ERROR][com.freerdp.core] - freerdp_set_last_error ERRCONNECT_CONNECT_FAILED [0x00020006]
[15:12:48:482] [8712:9958] [ERROR][com.freerdp.core] - failed to connect to 192.168.1.3
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
remmina 的版本详情为:
~$ remmina --full-version
StatusNotifier/Appindicator support: your desktop does support it and libappindicator is compiled in remmina. Good!
Remmina - 1.2.31 (git n/a)
NAME TYPE DESCRIPTION PLUGIN AND LIBRARY VERSION
RDP Protocol RDP - Remote Desktop Protocol RDP Plugin: 1.2.31 (git n/a), Compiled with FreeRDP lib: 2.0.0-dev3 (n/a), Running with FreeRDP lib: 2.0.0-dev3 (rev n/a), H264: Yes
RDPF File RDP - RDP File Handler RDP Plugin: 1.2.31 (git n/a), Compiled with FreeRDP lib: 2.0.0-dev3 (n/a), Running with FreeRDP lib: 2.0.0-dev3 (rev n/a), H264: Yes
RDPS Preference RDP - Preferences RDP Plugin: 1.2.31 (git n/a), Compiled with FreeRDP lib: 2.0.0-dev3 (n/a), Running with FreeRDP lib: 2.0.0-dev3 (rev n/a), H264: Yes
SFTP Protocol SFTP - Secure File Transfer 1.2.31
SSH Protocol SSH - Secure Shell 1.2.31
VNC Protocol VNC - VNC viewer 1.2.31
VNCI Protocol VNCI - VNC viewer listen mode 1.2.31
glibsecret Secret GNOME libsecret
答案1
哎呀!
找到解决方案。
目标笔记本电脑的有线以太网适配器网络在 Windows 中配置为网络类型(网络类别)为 PUBLIC。将其更改为 PRIVATE 可使 remmina 和 RDP 正常工作。
显然,网络在过去一个月内发生了变化。