Debian

freerdp 會話未知

  • March 19, 2021

我正在嘗試使用 xfreerdp 從 Debian 10 機器連接到我們的 Windows 7 VM,但我不斷收到錯誤會話

$$ UNKNOWN $$. 我已經嘗試了來自 backports 的 xfreerdp 2.0 和 2.2,甚至是 2021 年 4 月 3 日的 3.0 nightly build,並且都有相同的錯誤。 這是我正在使用的命令;

/opt/freerdp-nightly/bin/xfreerdp /u:<admin user> /p:<pass> /v:192.168.200.189 /app:"cmd.exe"

注意:它在沒有連接’/app:“cmd.exe”’ 的情況下工作,但我只想啟動應用程序,然後在離開該應用程序後關閉連接。

完全錯誤;

[14:59:10:453] [18976:18977] [INFO][com.freerdp.core] - freerdp_connect:freerdp_set_last_error_ex resetting error state
[14:59:10:453] [18976:18977] [INFO][com.freerdp.client.common.cmdline] - loading channelEx rdpdr
[14:59:10:454] [18976:18977] [INFO][com.freerdp.client.common.cmdline] - loading channelEx rdpsnd
[14:59:10:454] [18976:18977] [INFO][com.freerdp.client.common.cmdline] - loading channelEx cliprdr
[14:59:10:454] [18976:18977] [INFO][com.freerdp.client.common.cmdline] - loading channelEx rail
[14:59:10:817] [18976:18977] [INFO][com.freerdp.primitives] - primitives autodetect, using optimized
[14:59:10:829] [18976:18977] [INFO][com.freerdp.core] - freerdp_tcp_is_hostname_resolvable:freerdp_set_last_error_ex resetting error state
[14:59:10:829] [18976:18977] [INFO][com.freerdp.core] - freerdp_tcp_default_connect:freerdp_set_last_error_ex resetting error state
[14:59:10:844] [18976:18977] [WARN][com.freerdp.crypto] - Certificate verification failure 'unable to get local issuer certificate (20)' at stack position 0
[14:59:10:844] [18976:18977] [WARN][com.freerdp.crypto] - CN = tramontana-PC
[14:59:12:957] [18976:18977] [INFO][com.freerdp.client.x11] - Logon Error Info SESSION_ID [UNKNOWN]
[14:59:12:957] [18976:18977] [INFO][com.freerdp.client.x11] - Logon Error Info SESSION_ID [UNKNOWN]
[14:59:12:957] [18976:18977] [INFO][com.freerdp.core] - ERRINFO_LOGOFF_BY_USER (0x0000000C):The disconnection was initiated by the user logging off their session on the server.
[14:59:12:957] [18976:18977] [ERROR][com.freerdp.core] - rdp_set_error_info:freerdp_set_last_error_ex ERRINFO_LOGOFF_BY_USER [0x0001000C]

這裡同樣的問題。從 buster-backports 更新 freerdp:

sudo apt install -t buster-backports libfreerdp-client2-2 freerdp2-x11

此外,您的 windows VM 應該滿足一些要求

RemoteApp Tool requires:

   Microsoft .Net Framework 4
   Windows 7 Enterprise or Ultimate -or-
   Windows 8 Enterprise -or-
   Windows 10 Enterprise or Education -or-
   Windows XP SP3
   It also works with Windows Server 2008 and newer.

Note: If you try to host RemoteApps on any other edition of Windows (eg Win 7/8/10 Professional), the tool will run but RemoteApps will not work. The RDP client will appear to be connecting, then just disappear.

引用自:https://unix.stackexchange.com/questions/637495