|
| 1 | +--- |
| 2 | +title: 'Connect to a Linux VM using RDP' |
| 3 | +titleSuffix: Azure Bastion |
| 4 | +description: Learn how to use Azure Bastion to connect to Linux VM using RDP. |
| 5 | +author: cherylmc |
| 6 | +ms.service: bastion |
| 7 | +ms.topic: how-to |
| 8 | +ms.custom: linux-related-content |
| 9 | +ms.date: 06/19/2024 |
| 10 | +ms.author: cherylmc |
| 11 | +--- |
| 12 | + |
| 13 | +# Create an RDP connection to a Linux VM using Azure Bastion |
| 14 | + |
| 15 | +This article shows you how to securely and seamlessly create an RDP connection to your Linux VMs located in an Azure virtual network directly through the Azure portal. Azure Bastion provides secure connectivity to all of the VMs in the virtual network in which it's provisioned. Using Azure Bastion protects your virtual machines from exposing RDP/SSH ports to the outside world, while still providing secure access using RDP/SSH. For more information, see [What is Azure Bastion?](bastion-overview.md) |
| 16 | + |
| 17 | +When you use Azure Bastion, your VMs don't require a client or an agent. However, to connect to a Linux VM using RDP, you must install xrdp. See the next section for details. |
| 18 | + |
| 19 | +## Prerequisites and limitations |
| 20 | + |
| 21 | +Make sure you've configured an Azure Bastion host for the virtual network in which the VM resides. For more information, see [Create an Azure Bastion host](./tutorial-create-host-portal.md). Once the Bastion service is provisioned and deployed in your virtual network, you can use it to connect to any VM in this virtual network. |
| 22 | + |
| 23 | +* The connection settings and features that are available depend on the Bastion SKU you're using. |
| 24 | + |
| 25 | + * RDP to a Linux VM is only available for the Standard SKU or higher. To check your SKU or upgrade to a higher SKU tier, see [Upgrade the SKU](upgrade-sku.md). |
| 26 | + * To see the available features and settings per SKU tier, see the [SKUs and features](bastion-overview.md#sku) section of the Bastion overview article. |
| 27 | + |
| 28 | +* To use RDP with a Linux virtual machine, you must also ensure that you have xrdp installed and configured on the Linux VM. To learn how to do this, see [Use xrdp with Linux](../virtual-machines/linux/use-remote-desktop.md). |
| 29 | + |
| 30 | +* You must use username/password authentication. |
| 31 | + |
| 32 | +### Required roles |
| 33 | + |
| 34 | +In order to make a connection, the following roles are required: |
| 35 | + |
| 36 | +* Reader role on the virtual machine |
| 37 | +* Reader role on the NIC with private IP of the virtual machine |
| 38 | +* Reader role on the Azure Bastion resource |
| 39 | +* Reader role on the virtual network of the target virtual machine (if the Bastion deployment is in a peered virtual network). |
| 40 | + |
| 41 | +### Ports |
| 42 | + |
| 43 | +To connect to the Linux VM via RDP, you must have the following ports open on your VM: |
| 44 | + |
| 45 | +* Inbound port: RDP (3389) *or* |
| 46 | +* Inbound port: Custom value (you'll then need to specify this custom port when you connect to the VM via Azure Bastion) |
| 47 | + |
| 48 | +## <a name="rdp"></a>Connect |
| 49 | + |
| 50 | +[!INCLUDE [Connect to a Linux VM using RDP](../../includes/bastion-vm-rdp-linux.md)] |
| 51 | + |
| 52 | +## Next steps |
| 53 | + |
| 54 | +Read the [Bastion FAQ](bastion-faq.md) for more information. |
0 commit comments