mirror of
https://github.com/1Remote/1Remote.git
synced 2026-04-25 13:36:03 +03:00
[GH-ISSUE #671] RDP not works with Ubuntu 24.04: Authentication error There are more data available #3467
Labels
No labels
area-configuration
area-ct-app
area-ct-rdp
area-ct-remoteapp
area-ct-ssh
area-ct-vnc
area-launcher
area-list
area-tags
area-teamwork
bug
chore
dependencies
general-build/ci
general-performance
general-refactor
general-security
general-supportive
general-ux
meta-documentation
meta-enhancement
meta-enhancement
meta-feature
meta-help-wanted
meta-unknown-error
priority-hi
priority-low
pull-request
question
resolution-duplicate
resolution-invalid
resolution-wontfix
stale
task-put-off
task-still-considering
task-working-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/1Remote#3467
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Tyi-13 on GitHub (May 31, 2024).
Original GitHub issue: https://github.com/1Remote/1Remote/issues/671
Originally assigned to: @VShawn on GitHub.
Describe the bug
Ubuntu 24.04远程桌面可以正常使用,但远程登陆无法正常连接。
Ubuntu 24.04 remote desktop can be used normally, but remote login cannot be connected normally.
Steps to reproduce the behavior:
Turn on the Ubuntu 24.04 remote login function, use 1Remote connection, do not use mstsc.exe mode, and the 1Remote process crashes after the black screen is displayed
Using 1Remote connection and using mstsc.exe mode, an error pop-up is generated:
If you use the remote desktop connection of the system, you can connect normally after entering the credentials
Expected behavior
使用1Remote可以正常连接Ubuntu 24.04远程登陆
You can use 1Remote to connect to Ubuntu 24.04 and log in remotely
Desktop (please complete the following information):
@VShawn commented on GitHub (Jun 1, 2024):
感谢反馈,由于我本人不使用带桌面的Linux系统,所以无法快速测试这个问题,又因为 https://github.com/1Remote/1Remote/issues/664,我目前也没有精力去安装一个 Ubuntu 24 进行测试,因此该 bug 暂时搁置。
很遗憾暂时无法给出修复安排计划。麻烦你先使用 mstsc 顶着。
我估计是因为某个权限验证开关导致的,但快速搜索了一圈,并没有找到有用的信息(可能是因为我用的英文关键字有误,若你有空麻烦切到英文系统后,把英文的故障原因截图出来)。
https://askubuntu.com/questions/1418769/remote-desktop-in-22-04-from-win-10-authentication-error
如果你之后找到问题的原因,也欢迎回来告知。
@Tyi-13 commented on GitHub (Jun 3, 2024):
英文的故障原因截图如下

@RainCat1998 commented on GitHub (Jul 9, 2024):
我也是这个问题
@TingyiChen commented on GitHub (Aug 25, 2024):
在MS Store最新版1Remote抓了一下log,看起来是分辨率设置相关的问题,但是我在设置里调整了也是闪退。具体log和文件如下:
[T:001][09:25:08.647]
DebugRDP Host: RdpOnOnConnected[T:001][09:25:08.651]
DebugRDP Host: ReConn with full screen[T:001][09:25:29.284]
DebugMain window resize to: w = 800, h = 530[T:001][09:25:29.736]
DebugAdd dummy server forLocal[T:004][09:26:03.734]
DebugLocal:NeedRead = 1724549128281 < 1724549106826 = False[T:001][09:26:05.077]
DebugCloseEmptyWindows: Current: Host = 0, Full = 0, Tab = 0, HostToBeDispose = 0, WindowToBeDispose = 0[T:016][09:26:05.115]
DebugTcpHelper: Connected to 192.168.103.136:3389[T:001][09:26:05.164]
DebugAxMsRdpClient09Host: Status => Initializing[T:001][09:26:05.166]
DebugRDP Host: _rdpClient.Dispose()[T:001][09:26:05.176]
DebugRDP Host: init new AxMsRdpClient9NotSafeForScriptingEx()[T:001][09:26:05.182]
DebugRDP Host: init CreateControl();[T:001][09:26:05.229]
DebugRDP Host: init Static[T:001][09:26:05.236]
DebugRDP Host: init conn bar[T:001][09:26:05.241]
DebugRDP Host: init Redirect[T:001][09:26:05.248]
DebugRDP Host: init Display with ScaleFactor = 100, W = 0, H = 0, isReconnecting = False[T:001][09:26:05.256]
DebugRDP Host: Display init end: RDP.DesktopWidth = 1440, RDP.DesktopHeight = 900,[T:001][09:26:05.257]
DebugRDP Host: init Performance[T:001][09:26:05.258]
DebugRdpInit: DisplayPerformance = High, flag = 110000000[T:001][09:26:05.261]
DebugRDP Host: init Gateway[T:001][09:26:05.262]
DebugAxMsRdpClient09Host: Status => Initialized[T:016][09:26:05.331]
DebugCloseEmptyWindows: Current: Host = 1, Full = 1, Tab = 0, HostToBeDispose = 0, WindowToBeDispose = 0[T:016][09:26:05.353]
DebugMove host(49538252) to full(62696216)[T:016][09:26:05.354]
DebugMoveSessionToFullScreen: Current: Host = 1, Full = 1, Tab = 0, HostToBeDispose = 0, WindowToBeDispose = 0[T:001][09:26:05.357]
DebugAxMsRdpClient09Host: Status => Connecting[T:001][09:26:05.550]
DebugAxMsRdpClient09Host: Status => Connected[T:016][09:26:05.554]
DebugStart Conn: Ubuntu(20974680) by host(49538252) with full[T:001][09:26:05.613]
DebugRDP Host: OnRequestGoFullScreen[T:001][09:26:05.627]
DebugRDP to FullScreen resize ParentWindow to : W = 1440, H = 900, while screen size is 1440 × 900, ScaleFactor = 100[T:001][09:26:05.634]
DebugSetRdpResolution needUpdate = True, UpdateSessionDisplaySettings, by: W = 1440 -> 1440, H = 900 -> 900, ScaleFactor = 0 -> 100, focus = True[T:001][09:26:05.640]
Error[AxMsRdpClient09Host.xaml.cs(SetRdpResolution:975)]@TingyiChen commented on GitHub (Aug 25, 2024):
切换到mstsc模式后,连接报错“有更多数据可用”。
Ubuntu侧报错如下:
2024-08-25T09:30:34.133011+08:00 IsaacChen-Server org.gnome.RemoteDesktop.Handover.desktop[11268]: [09:30:34:682] [11268:00002cb9] [WARN][com.freerdp.core.connection] - [rdp_server_accept_nego]: server supports only NLA Security
2024-08-25T09:30:34.133063+08:00 IsaacChen-Server org.gnome.RemoteDesktop.Handover.desktop[11268]: [09:30:34:682] [11268:00002cb9] [ERROR][com.freerdp.core.connection] - [rdp_server_accept_nego]: Protocol security negotiation failure
2024-08-25T09:30:34.133391+08:00 IsaacChen-Server org.gnome.RemoteDesktop.Handover.desktop[11268]: [09:30:34:682] [11268:00002cb9] [ERROR][com.freerdp.core.peer] - [peer_recv_callback_internal]: CONNECTION_STATE_NEGO - rdp_server_accept_nego() fail
2024-08-25T09:30:34.133405+08:00 IsaacChen-Server org.gnome.RemoteDesktop.Handover.desktop[11268]: [09:30:34:682] [11268:00002cb9] [ERROR][com.freerdp.core.transport] - [transport_check_fds]: transport_check_fds: transport->ReceiveCallback() - STATE_RUN_FAILED [-1]
看起来是没有启用NLA的原因,但是在1Remote里面没有看到相关的设置
@VShawn commented on GitHub (Aug 25, 2024):
阿,我这两天在装24.04,但启动虚拟机VM就整个卡死,启动22.04就一切正常。
但 NLA 你可以试试用最新版本的1RM,在additional settings 里,修改这两个参数
enablecredsspsupport:i:1
authentication level:i:2
ref: https://gist.github.com/pingec/7b391a04412a7034bfb6
这个故障大概率和本次ticket无关,因为这个是经常发生的错误并且已经被我catch掉了。
@TingyiChen commented on GitHub (Aug 26, 2024):
我今天试一下 感谢
@TingyiChen commented on GitHub (Aug 26, 2024):
还是报一样的错误
@TingyiChen commented on GitHub (Aug 27, 2024):
在导入已有rdp文件的时候 是否可以不改变其配置?我把Ubuntu的信息另存为rdp也可以连接 但是导入到1rm就不行 查看配置发现和我导入的有变化
@RainCat1998 commented on GitHub (Aug 27, 2024):
24.04如果你使用vmware workstation启动,需要改一下默认的硬盘,如果是IDE就会卡死,改成SCSI就行。
@VShawn commented on GitHub (Aug 29, 2024):
@RainCat1998 是了,我就是VM装的
@VShawn commented on GitHub (Sep 5, 2024):
很奇怪,我这里直接用系统远程桌面,也会提示这个错误
@TingyiChen commented on GitHub (Sep 6, 2024):
@VShawn 用户名和密码对了吗?我这边如果输错的话 就报这个错误。/var/log/syslog里面有什么报错吗
@leemoncn commented on GitHub (Oct 30, 2024):
我这连接ubuntu 22.04,连上了就自动关掉了,但是mstsc模式可以正常连接
@bobzjh commented on GitHub (Nov 13, 2024):
我也遇到同样问题,只能用win自带的mstsc来连接。microsoft store里安装的1remote
@RainCat1998 commented on GitHub (Jan 16, 2025):
@TingyiChen @VShawn @leemoncn @bobzjh @Tyi-13

我破案了,是这个问题。
ubuntu连上后提示不安全,最开始没注意到那个提示框。
额外指令那里下面这行就行了。
@TingyiChen commented on GitHub (Jan 17, 2025):
我这边测试了一下 现在可以了 感谢