Cannot connect my Ubuntu 18.04 VPS in Microsfot remote desktop macOS APP.

ALONSO GARCÍA FERNÁNDEZ 21 Reputation points
2020-06-08T18:03:57.83+00:00

Hello! I have created a Linux, Ubuntu 18.04 server last morning. I installed all commands in Linux CLI (in a SSH client) to activate Remote Desktop control in my server because I want to use it in Microsoft Remote Desktop APP. However, when I try to access to server (with RDP file or adding manual IP) after 2 min loading, appear this message:

We couldn't connect to the remote PC. This might be because of a network problem. If this keeps happening, contact your network administrator for assistance.

I think , I need to setup something more, or add some protocol, or maybe port... not sure. But I would like to know how solvent it. The server is running good ( I can acces in other clientes with CLI), problem is with remote control.

Azure Service Fabric
Azure Service Fabric
An Azure service that is used to develop microservices and orchestrate containers on Windows and Linux.
252 questions
0 comments No comments
{count} votes

Accepted answer
  1. Manu Philip 16,986 Reputation points MVP
    2020-06-08T18:14:14.893+00:00

    Hello,

    To allow Remote Desktop traffic to reach your Linux VM, a network security group rule needs to be created that allows TCP on port 3389 to reach your VM.

    Following PS cmdlet can do that
    az vm open-port --resource-group myResourceGroup --name myVM --port 3389

    From Ubuntu VM, check if the ports are listening

    sudo netstat -plnt | grep rdp

    Check for any indications from log: tail -f /var/log/syslog

    Please mark as "Accept the answer" if the above steps helps you. Others with similar issues can also follow the solution as per your suggestion

    Regards,

    Manu


0 additional answers

Sort by: Most helpful