You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-machines/linux/use-remote-desktop.md
+12-6Lines changed: 12 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,14 +19,16 @@ When new to Linux, or for quick troubleshooting scenarios, the use of remote des
19
19
20
20
The article was written and tested using an Ubuntu 18.04 VM.
21
21
22
+
> [!NOTE]
23
+
> Using Remote Desktop over the internet will introduce noticeable "lag" (input latency) when compared to local desktop use. This can be influenced by multiple factors including local internet speed and distance from the datacenter where the virtual machine is hosted. This lag does not usually reflect the performance of the VM itself.
24
+
22
25
## Prerequisites
23
26
24
27
This article requires an existing Ubuntu 18.04 LTS or Ubuntu 20.04 LTS VM in Azure. If you need to create a VM, use one of the following methods:
25
28
26
-
- The [Azure CLI](quick-create-cli.md)
27
-
-- The [Azure portal](quick-create-portal.md)
28
-
29
-
29
+
-- The [Azure CLI](quick-create-cli.md)
30
+
- The [Azure portal](quick-create-portal.md)
31
+
30
32
## Install a desktop environment on your Linux VM
31
33
32
34
Most Linux VMs in Azure don't have a desktop environment installed by default. Linux VMs are commonly managed using SSH connections rather than a desktop environment, however there are several desktop environments that you can choose to install. Depending on your choice of desktop environment, it consumes up to 2 GB of disk space and take up to ten minutes to both install and configure all the required packages.
@@ -35,7 +37,6 @@ The following example installs the lightweight [xfce4](https://www.xfce.org/) de
35
37
36
38
First, SSH to your VM. The following example connects to the VM named *myvm.westus.cloudapp.azure.com* with the username of *azureuser*. Use your own values:
## Create a Network Security Group rule for Remote Desktop traffic
93
95
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. For more information about network security group rules, see [What is a network security group?](../../virtual-network/network-security-groups-overview.md) You can also [use the Azure portal to create a network security group rule](../windows/nsg-quickstart-portal.md).
94
96
@@ -144,10 +146,13 @@ After authenticating, the xfce desktop environment will load and look similar to
144
146

145
147
146
148
149
+
147
150
If your local RDP client uses network level authentication (NLA), you may need to disable that connection setting. XRDP does not currently support NLA. You can also look at alternative RDP solutions that do support NLA, such as [FreeRDP](https://www.freerdp.com).
148
151
149
152
150
153
154
+
155
+
151
156
## Troubleshoot
152
157
If you can't connect to your Linux VM using a Remote Desktop client, use `netstat` on your Linux VM to verify that your VM is listening for RDP connections as follows:
153
158
@@ -179,6 +184,7 @@ Other Linux distributions such as Red Hat Enterprise Linux and SUSE may have dif
179
184
If you don't receive any response in your remote desktop client and don't see any events in the system log, this behavior indicates that remote desktop traffic can't reach the VM. Review your network security group rules to ensure that you have a rule to permit TCP on port 3389. For more information, see [Troubleshoot application connectivity issues](/troubleshoot/azure/virtual-machines/troubleshoot-app-connection).
180
185
181
186
187
+
182
188
## Next steps
183
189
For more information about creating and using SSH keys with Linux VMs, see [Create SSH keys for Linux VMs in Azure](mac-create-ssh-keys.md).
0 commit comments