Multiple RDP Bastion connections

Hamzeian, Donya 20 Reputation points
2024-01-03T23:27:18.65+00:00

I have created an Ubuntu 20.04 virtual machine. On this VM I have 2 users. User1 is an admin and User2 is a sudo level user. I followed these steps to install xrdp on the VM https://learn.microsoft.com/en-gb/azure/virtual-machines/linux/use-remote-desktop?tabs=azure-cli
Now, User1 is able to connect to the VM using Bastion Protocol RDP and Port 3389. However, User2 is only able to connect through Bastion SSH. I need multiple people to connect to the VM through Bastion RDP at the same time. Note that I have configured the Bastion to "Standard" with 3 instances.

Azure Bastion
Azure Bastion
An Azure service that provides private and fully managed Remote Desktop Protocol (RDP) and Secure Shell (SSH) access to virtual machines.
242 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,165 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Silvia Wibowo 3,011 Reputation points Microsoft Employee
    2024-01-04T01:57:29.61+00:00

    Hi @Hamzeian, Donya , I understand that you've installed xrdp on Ubuntu Azure VM then connect to it via Azure Bastion with RDP protocol. You found that only User1 can login via RDP.

    I believe there is default setting in xrdp, controlled by /etc/xrdp/sesman.ini that you can modify.

    Reference: https://askubuntu.com/questions/1433247/ubuntu-22-04-xrdp-allow-multiple-sessions-and-restrict-some-users

    Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.

    0 comments No comments

  2. KapilAnanth-MSFT 35,336 Reputation points Microsoft Employee
    2024-01-10T10:14:14.51+00:00

    @Hamzeian, Donya

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this!

    Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others", I'll repost your solution in case you'd like to "Accept" the answer.

    Issue:

    Configure multiple concurrent RDP sessions to Linux VM using xrdp Service and Azure Bastion.

    Solution:

    You contacted Azure Support team and they suggested the following.

    • Run the below to add users to the Group
      • sudo usermod -aG ssl-cert User1
        • sudo usermod -aG ssl-cert User2
    • Then execute this command individually in the shells of both users:
      • echo xfce4-session >~/.xsession
    • Then run the command to restart xrdp and finally, restart the VM.

    Thanks,

    Kapil

    0 comments No comments