LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-11-2024, 11:22 AM   #1
yangou
Member
 
Registered: Feb 2010
Location: London
Distribution: Fedora 25
Posts: 39

Rep: Reputation: 2
xfreerdp - Error connecting to user session


Hello everyone

I am trying to connect via RDP from a Rocky machine to an almalinux machine using xfreerdp.

When I run:

Code:
xfreerdp /v:<IP_address>  /u:yang /p:password
I get a black screen with a window named, Connection log:

Code:
connecting to sesman on 127.0.0.1:3350
sesman connect ok
sending login info to session manager. Please wait...
login successful for user yang on display 11
VNC started connecting
VNC tcp connected
VNC security level is 2
VNC password failed
VNC error - problem connecting
some problem
Error connecting to user session.
Does anyone have any suggestions that could help me resolve this, please? I can confirm that user yang exists and the password is correct so I don't know why is complaining about it.

Many thanks for your help.
Yangou
 
Old 04-11-2024, 12:24 PM   #2
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 779

Rep: Reputation: 246Reputation: 246Reputation: 246
What's on the remote end? You start with RDP, then switch to....VNC? I'd imagine Xrdp is on the remote end. Maybe something is off with your config file.
 
Old 04-12-2024, 05:42 AM   #3
yangou
Member
 
Registered: Feb 2010
Location: London
Distribution: Fedora 25
Posts: 39

Original Poster
Rep: Reputation: 2
I'm not sure why is says VNC on the other end. I did have vncserver installed but I can confirm it is not running on the remote machine.


Code:
○ vncserver@:4.service - Remote desktop service (VNC)
     Loaded: loaded (/usr/lib/systemd/system/vncserver@.service; disabled; preset: disabled)
     Active: inactive (dead)

Apr 11 16:37:57 eps611 systemd[1]: Starting Remote desktop service (VNC)...
Apr 11 16:37:57 eps611 systemd[1]: Started Remote desktop service (VNC).
Apr 11 16:37:57 eps611 systemd[1]: vncserver@:4.service: Deactivated successfully.

I didn't touch any config files so there may be some editing required.

On the machine I am trying to login from. systemctl status xrdp shows:

Code:
● xrdp.service - xrdp daemon
     Loaded: loaded (/usr/lib/systemd/system/xrdp.service; enabled; preset: disabled)
     Active: active (running) since Fri 2024-03-22 09:38:48 GMT; 3 weeks 0 days ago
       Docs: man:xrdp(8)
             man:xrdp.ini(5)
   Main PID: 8460 (xrdp)
      Tasks: 1 (limit: 201362)
     Memory: 2.3M
        CPU: 3ms
     CGroup: /system.slice/xrdp.service
             └─8460 /usr/sbin/xrdp --nodaemon

Mar 22 09:38:48 paok systemd[1]: Started xrdp daemon.
Mar 22 09:38:48 paok xrdp[8460]: [INFO ] starting xrdp with pid 8460
Mar 22 09:38:48 paok xrdp[8460]: [INFO ] address [0.0.0.0] port [3389] mode 1
Mar 22 09:38:48 paok xrdp[8460]: [INFO ] listening to port 3389 on 0.0.0.0
Mar 22 09:38:48 paok xrdp[8460]: [INFO ] xrdp_listen_pp done
On the remote machine the xrdp service status before I attempt to remote login to it, is:

Code:
● xrdp.service - xrdp daemon
     Loaded: loaded (/usr/lib/systemd/system/xrdp.service; enabled; preset: disabled)
     Active: active (running) since Fri 2024-04-12 11:35:39 BST; 1s ago
       Docs: man:xrdp(8)
             man:xrdp.ini(5)
   Main PID: 7389 (xrdp)
      Tasks: 1 (limit: 407849)
     Memory: 1.0M
        CPU: 11ms
     CGroup: /system.slice/xrdp.service
             └─7389 /usr/sbin/xrdp --nodaemon

Apr 12 11:35:39 eps611 systemd[1]: Started xrdp daemon.
Apr 12 11:35:39 eps611 xrdp[7389]: [INFO ] starting xrdp with pid 7389
Apr 12 11:35:39 eps611 xrdp[7389]: [INFO ] address [0.0.0.0] port [3389] mode 1
Apr 12 11:35:39 eps611 xrdp[7389]: [INFO ] listening to port 3389 on 0.0.0.0
Apr 12 11:35:39 eps611 xrdp[7389]: [INFO ] xrdp_listen_pp done
However, if I try to remotely login to it (eps611), the status of the xrdp service on the remote host becomes:
Code:
● xrdp.service - xrdp daemon
     Loaded: loaded (/usr/lib/systemd/system/xrdp.service; enabled; preset: disabled)
     Active: active (running) since Fri 2024-04-12 11:26:44 BST; 8min ago
       Docs: man:xrdp(8)
             man:xrdp.ini(5)
   Main PID: 6896 (xrdp)
      Tasks: 1 (limit: 407849)
     Memory: 1.0M
        CPU: 633ms
     CGroup: /system.slice/xrdp.service
             └─6896 /usr/sbin/xrdp --nodaemon

Apr 12 11:33:47 eps611 xrdp[7381]: [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
Apr 12 11:33:47 eps611 xrdp[7381]: [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|RDP], selected [SSL]
Apr 12 11:33:47 eps611 xrdp[7381]: [ERROR] SSL_accept: Failure in SSL library (protocol error?)
Apr 12 11:33:47 eps611 xrdp[7381]: [ERROR] SSL: error:0A000126:SSL routines::unexpected eof while reading
Apr 12 11:33:47 eps611 xrdp[7381]: [ERROR] trans_set_tls_mode: ssl_tls_accept failed
Apr 12 11:33:47 eps611 xrdp[7381]: [ERROR] xrdp_sec_incoming: trans_set_tls_mode failed
Apr 12 11:33:47 eps611 xrdp[7381]: [ERROR] xrdp_rdp_incoming: xrdp_sec_incoming failed
Apr 12 11:33:47 eps611 xrdp[7381]: [ERROR] xrdp_process_main_loop: libxrdp_process_incoming failed
Apr 12 11:33:47 eps611 xrdp[7381]: [ERROR] xrdp_iso_send: trans_write_copy_s failed
Apr 12 11:33:47 eps611 xrdp[7381]: [ERROR] Sending [ITU T.125] DisconnectProviderUltimatum failed
 
Old 04-12-2024, 06:13 AM   #4
yangou
Member
 
Registered: Feb 2010
Location: London
Distribution: Fedora 25
Posts: 39

Original Poster
Rep: Reputation: 2
A small update.

I just tried xfreerdp using the root account of the remote machine and it worked.

xfreerdp /v:eps611 /u:root /p:password

Do you know how to enable the account yang to access the machine remotely?

Thank you
 
Old Today, 10:46 AM   #5
linuxbuz
LQ Newbie
 
Registered: Aug 2020
Location: India
Distribution: Ubuntu 20.04
Posts: 1

Rep: Reputation: Disabled
As per my experience, you should go for ThinLinc remote desktop. It is optimized for performance, providing smooth remote desktop experiences even over low-bandwidth connections. Its efficient compression algorithms and rendering techniques ensure that users experience minimal lag and high responsiveness.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Black screen connecting xfreerdp -> xrdp Ook Slackware 7 10-27-2023 09:23 AM
Unable to use dual monitors in Linux Mint 18.1 on a thin client remote session using xfreerdp Adub30 Linux - Newbie 1 01-16-2020 03:58 AM
[SOLVED] slackware current - krdc RDP error - Missing xfreerdp bitfuzzy Slackware 3 12-26-2019 06:01 PM
Unable to launch "cinnamon-session-cinnamon" X session "cinnamon-session-cinnamon" -found; Falling back to default "session." xxxindigo Linux Mint 22 09-01-2019 09:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration