Contents
Does xrdp allow multiple sessions?
This is it for this short post ! By default, xRDP will only allow a single session per user account. By default, a same user account cannot be , at the same time, logged on locally on the Linux machine and remotely.
How do I set up xrdp session that reuses an existing session?
To summarize:
- Edit the xrdp. ini file.
- set port = ask.
- connect from the remote machine, and at login if you have no existing session, specify port -1.
- to resume a session enter the default of 5910.
How do I start an xrdp service?
Simple setup with no user logged into console
- With Ubuntu 18.04 first install xrdp: sudo apt-get -y install xrdp.
- Next, one may adjust the configuration file: sudo nano /etc/xrdp/xrdp.ini.
- Set encryption level to high: encrypt_level=high.
- Next, allow just RDP through the local firewall: sudo ufw allow 3389/tcp.
How do I start xrdp?
How to allow multiple login with xrdp?
This change will add an additional field in your xrdp login screen where you can specify the port. The first time the user connects, he should accept the default (i.e. -1), the next time he connects in order to reconnect to the same session, the user needs to provide the port used during the first connection.
When to use.xsession file in xrdp?
This file is used by the XRDP server in order to know which desktop interface needs to be loaded when a user perform a remote desktop connection. If you have only one user that needs to access the Ubuntu machine remotely, you will need to perform this operation only once (the creation of the .xsession file)
How to connect to xrdp from a remote desktop?
The XRDP server is using a bunch of script that runs when a user start a remote desktop connection to the XRDP Server. We will simply modify one of these script in order to have the .xsession file created just before the user log into the system.
How to restart a xrdp session after disconnecting?
After disconnecting the session, to resume an existing session always log in on the default port: 5910 and you will resume your existing session until you restart the remote computer or end the session when logging off. I hate to be the guy who just drops a link, but I followed the guide here and it worked really well.