LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   xfreerdp - Error connecting to user session (https://www.linuxquestions.org/questions/linux-software-2/xfreerdp-error-connecting-to-user-session-4175735913/)

yangou 04-11-2024 11:22 AM

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

jayjwa 04-11-2024 12:24 PM

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.

yangou 04-12-2024 05:42 AM

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


yangou 04-12-2024 06:13 AM

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

linuxbuz 04-29-2024 10:46 AM

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.

JamesRancer 05-14-2024 03:08 AM

Any update? I am waiting for your response. I am also facing the same error and I want to get rid of them. Please reply to me as soon as possible. I will visit here again. Now, I am gonna visit https://academized.com/write-my-essay website where I found an essay writer who will write my essay assignment by taking some money from me. I met with an accident and that is why I can't write essay assignments on my own. This is why I want to hire an essay writer.


All times are GMT -5. The time now is 06:52 PM.