how to connect remote desktop (remmina) with azure VM?

zainab rehman 0 Reputation points
2023-07-04T08:08:12.5+00:00

I have been trying for so many times to connect my remote desktop with azure VM, I already deployed VM for MATLAB, I want to work on Azure VM through remote desktop, but unable to connect, I am using remmina remote desktop with RDP protocol, port 3389 is also allowed in both VM and my Ubuntu system, firewall also allows these ports, I have checked every possible solution to connect my remote desktop with Azure VM but every time I got an error message the connecting to sesame IP 127.0.0.1 port 3350, login failed, even i tried on Windows, got same error message. I am stuck at this point, please suggest any possible solution, i tried all solutions from internet.

Thanks in advance.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,276 questions
Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,652 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,688 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Andriy Bilous 11,621 Reputation points MVP
    2023-07-04T08:43:53.8133333+00:00

    Hello @zainab rehman

    xrdp and xrdp-sesman use TCP port 3350 on the loopback interface (127.0.0.1) to communicate. From above it looks like xrdp-sesman is listening on 3350, but xrdp is for some reason unable to connect to it.

    You need a couple of things to check:

    1. In xrdp.ini there is a setting for SSL protocols. For connection from Windows 10, I suggest
      ssl_protocols=TLSv1.2, TLSv1.3
    2. Check if you have a file /etc/X11/Xwrapper.config containing a line.
      allowed_users = anybody
    3. Try to delete file
      /etc/pam.d/xrdp-sesman

    I would suggest testing the remote machine’s port you are trying to connect to
    telnet <remore-machine-name-or-IP-address> 3389
    Also you can use following commands for troubleshooting. The first command checks the processes are using the same network stack, the second looks for processes listening on port 3350, and the third probes port 3350 to see if it's open.

    sudo ps -e -o pid,netns,command | grep xrdp sudo ss -alp 'sport = 3350' sudo nmap -p 3350 127.0.0.1

    https://github.com/neutrinolabs/xrdp/issues/1777
    https://github.com/neutrinolabs/xrdp/issues/2336

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.