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
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,12 +24,12 @@ The article was written and tested using an Ubuntu 18.04 VM.
24
24
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
25
26
26
- The [Azure CLI](quick-create-cli.md)
27
-
- The [Azure portal](quick-create-portal.md)
27
+
--The [Azure portal](quick-create-portal.md)
28
28
29
29
30
30
## Install a desktop environment on your Linux VM
31
31
32
-
Most Linux VMs in Azure do not 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 will consume up to 2 GB of disk space and take up to ten minutes to both install and configure all the required packages.
32
+
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.
33
33
34
34
The following example installs the lightweight [xfce4](https://www.xfce.org/) desktop environment on an Ubuntu VM. Commands for other distributions vary slightly (use `yum` to install on Red Hat Enterprise Linux and configure appropriate `selinux` rules, or use `zypper` to install on SUSE, for example).
35
35
@@ -40,7 +40,7 @@ First, SSH to your VM. The following example connects to the VM named *myvm.west
If you are using Windows and need more information on using SSH, see [How to use SSH keys with Windows](ssh-from-windows.md).
43
+
If you're using Windows and need more information on using SSH, see [How to use SSH keys with Windows](ssh-from-windows.md).
44
44
45
45
Next, install xfce using `apt` :
46
46
@@ -59,7 +59,8 @@ sudo apt-get -y install xrdp
59
59
sudo systemctl enable xrdp
60
60
```
61
61
62
-
On Ubuntu 20, you'll need to give certificate access to an xrdp user:
62
+
On Ubuntu 20, you need to give certificate access to an xrdp user:
63
+
63
64
```bash
64
65
sudo adduser xrdp ssl-cert
65
66
```
@@ -77,7 +78,7 @@ sudo service xrdp restart
77
78
```
78
79
79
80
## Set a local user account password
80
-
If you created a password for your user account when you created your VM, skip this step. If you only use SSH key authentication and do not have a local account password set, specify a password before you use xrdp to log in to your VM. xrdp cannot accept SSH keys for authentication. The following example specifies a password for the user account *azureuser*:
81
+
If you created a password for your user account when you created your VM, skip this step. If you only use SSH key authentication and don't have a local account password set, specify a password before you use xrdp to log in to your VM. xrdp can't accept SSH keys for authentication. The following example specifies a password for the user account *azureuser*:
81
82
82
83
```bash
83
84
sudo passwd azureuser
@@ -148,7 +149,7 @@ If your local RDP client uses network level authentication (NLA), you may need t
148
149
149
150
150
151
## Troubleshoot
151
-
If you cannot 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:
152
+
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:
If the *xrdp-sesman* service is not listening, on an Ubuntu VM restart the service as follows:
165
+
If the *xrdp-sesman* service isn't listening, on an Ubuntu VM restart the service as follows:
165
166
166
167
```bash
167
168
sudo service xrdp restart
@@ -175,8 +176,7 @@ tail -f /var/log/syslog
175
176
176
177
Other Linux distributions such as Red Hat Enterprise Linux and SUSE may have different ways to restart services and alternate log file locations to review.
177
178
178
-
If you do not receive any response in your remote desktop client and do not see any events in the system log, this behavior indicates that remote desktop traffic cannot 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).
179
-
179
+
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).
0 commit comments