issues on Azure Bastion connectivity to Ubuntu Vm from Windows Os

Roopesh Bharatwaj K R 1 Reputation point
2021-03-26T17:07:42.617+00:00

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://learn.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 Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,998 questions
Azure Bastion
Azure Bastion
An Azure service that provides private and fully managed Remote Desktop Protocol (RDP) and Secure Shell (SSH) access to virtual machines.
264 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. TravisCragg-MSFT 5,681 Reputation points Microsoft Employee
    2021-03-26T22:01:19.843+00:00

    Hello @Roopesh Bharatwaj K R ,

    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.