Connecting to your VM via SSH on Microsoft Azure
The following are the prerequisites for this tutorial:
Introduction to Cloud Computing
Read this article for an introduction to basic Cloud Computing aspects.
Virtual Machines on Microsoft Azure- A Detailed Guide for Beginners
Read this article to learn how to create a VM on Azure and configure it based on your needs.
What is SSH?
The Secure Shell protocol encrypts the connection between a client and a server to provide better security. All user authentication, commands, output, and file transfers are encrypted to protect against attacks in the network
Connecting to your VM
Open the Command Shell present to the right of the Search bar in Azure.
Switch to bash and type the following command while replacing username with the username you configured earlier and replace vm-domain-name with the domain name of your VM that we configured in the previous article.
ssh username@vm-domain-name
You will see that our bash terminal will now show azureusername@vm-name instead of azureusername@Azure where azureusername stands for our username in Azure while vm-name stands for the name of the VM that we had configured earlier. This shows that we have successfully established an SSH connection to our VM, ie: you are now inside the terminal of your VM.
You can alternatively also download and use PuTTY. PuTTY is available for both Windows and Unix platforms.
Next Steps: Learn how to establish a remote connection to your Azure Virtual Machine via RDP
Check out this article