Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use remote Desktop (RDP) to access Ubuntu Linux VM in Azure

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Typically, when you set up a Linux VM (possibly Ubuntu Server) in Azure, you can only connect and access it remotely via SSH. This is different from Windows VMs in Azure; Linux VMs do not natively support Remote Desktop (RDP). Essentially, when you remotely access a Windows VM via RDP, this causes you to need SSH to a Linux VM.

If you are unfamiliar with Windows Remote Desktop, it is a technology that allows you to connect remotely to a Windows PC or VM from another computer, enabling you to see the on-screen interface (UI) as if you were sitting directly on the computer.

Traditionally, the only way to remotely connect to Linux VMs was to use SSH (Secure Shell). This technology enables users to connect remotely to Linux computers (PC or VM) from another computer using a Shell or command-line interface. Due to the nature of SSH, the Linux machine command line can only be accessed via SSH connections. If you are installing Ubuntu or another distribution on a local machine or virtual machine (VM), you cannot get a desktop-like UI for Linux machines.

The XRDP project is an open source project that adds Remote Desktop Protocol (RDP) support to Linux machines. By installing xrdp, you can add the ability to remotely connect remote desktops to Linux VMs. This then enables you to connect to Linux computers using a graphical user interface (UI), similar to the way you connect to Windows computers using Remote Desktop.

Without further ado, let's take a look at how to access Ubuntu Linux VMs in Azure using Remote Desktop (RDP).

First, we need to create a Linux VM to use. To do this, I will configure the Ubuntu Server VM in Azure.

After the server is created, it is shown in the following figure:

Connect to the created server using SSH:

Run: sudo apt-get install lxde -y:

Run: sudo apt-get install xrdp -y:

Start the service after installation:

Use MSTSC connection after server startup:

Click Yes:

Enter username Password:

The connection is successful, as shown in the following figure:

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report