question

RoopeshBharatwajKR-8921 avatar image
0 Votes"
RoopeshBharatwajKR-8921 asked TravisCragg-MSFT commented

issues on Azure Bastion connectivity to Ubuntu Vm from Windows Os

I have created a Ubuntu Virtual Machine on Azure - which is deployed. And I face difficulty in the connectivity to the Virtual Machine from Windows PC.

tried to connect with via SSH but was not possible and failed multiple times,
Tried with Bastion Services to connect, and i followed the steps and created and the new page popped up "welcome to Ubuntu"

what are all the next commands i need to give on the shell to open the Linux VM (similar to the Windows Vm which was very easy to operate )and to install Software .

for bastion connectivity, i followed the https://docs.microsoft.com/en-us/azure/bastion/quickstart-host-portal


And You tube Video of the How to use Azure Bastion to connect securely to your Azure VMs | Azure Friday. https://www.youtube.com/watch?v=WElUQm02BTU
(Here i followed until his last Command (ls) after this Microsoft team did not show how the VM was connected.

please do Advice and or suggest me how i should connect to VM after this step.81962-screenshot-2021-03-26-165312.png


tried with the bash connect with the AzureUser@ Ip address81888-screenshot-2021-03-26-170503.png
but was also unsuccessful ....Thank you


azure-virtual-machinesazure-bastion
5 |1600 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

TravisCragg-MSFT avatar image
0 Votes"
TravisCragg-MSFT answered TravisCragg-MSFT commented

Hello @RoopeshBharatwajKR-8921,

There are multiple things that I will need to cover to give you a good understanding on what is happening.

First, we will need to talk about some of the Operating System and User Interface differences between Windows and Linux.

Windows comes with a GUI (Graphical User Interface) that uses a keyboard and mouse to navigate. There are versions of Windows like Windows Server Core that do not contain a GUI. You use RDP (Remote Desktop Protocol) to access the GUI of a remote computer.

Linux comes with a Command Line interface, which is a text input window. This is exactly what you are seeing when you SSH into your Linux VM, as your screenshot shows. It allows you to input commands and install programs, but you must know the text commands to do so.


Next, Lets talk about connecting to your Linux VM without needing Azure Bastion. You can connect to Linux VMs using SSH (Secure Shell), most people use PuTTY to SSH from their Windows machines. You will need to download , install, and open PuTTY. You input the Server's IP, and that will bring you to a command window where you can enter your username and password. If you use SSH keys, let me know and I can give you those instructions as well .



Most linux VMs do not have a GUI by default. Many distributions do have the ability to install one, but you will first need to SSH and install a desktop client, then you will be able to use Linux with a GUI. Here is a fantastic doc that describes how to use xrdp with Ubuntu.


Please let me know if you have any other questions.


· 4
5 |1600 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.


Thank You very much for the clear and easy understanding , i have tried to run the program until the Remote Desktop connection After giving my credentials i, see the message connection is ok and there comes issue.

82779-whatsapp-image-2021-03-30-at-50532-pm.jpegers/storage/temp/82810-whatsapp-image-2021-03-30-at-50532-pm.jpeg



0 Votes 0 ·
TravisCragg-MSFT avatar image TravisCragg-MSFT RoopeshBharatwajKR-8921 ·

As you are able to access the VM, the issue lies either with the credentials you are using, or with the xrdp service.

Make sure you are using the correct username and password that you created in this step, or look for other solutions that resolve the error 'login failed for display 0'


0 Votes 0 ·

Hi, Thank you very much for the response, Yeah, I gave the credentials correctly. But still occurs, where shall i find out to tackle this. Thanks

0 Votes 0 ·
Show more comments