question

ALONSOGARCAFERNNDEZ-2426 avatar image
0 Votes"
ALONSOGARCAFERNNDEZ-2426 asked ·

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

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.



service-fabric-standalone
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ManuPhilip avatar image
0 Votes"
ManuPhilip answered ·

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

· 3 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

And this is wat I have in my instance, maybe should I add something more here?
9312-captura-de-pantalla-2020-06-08-a-las-202403.png


0 Votes 0 ·
ManuPhilip avatar image ManuPhilip ALONSOGARCAFERNNDEZ-2426 ·

Port 3389 should be in the list to allow RDP connections

Thanks,
Manu

0 Votes 0 ·