How to connect to Azure VM from the command line

0 votes

Hi Team,

I am new to the Azure cloud. I have created one Virtual Machine in Azure. Now I want to connect to the VM from the command line. How can I do that?

Nov 11, 2020 in Azure by akhtar
• 38,210 points
594 views

1 answer to this question.

0 votes

Hi@akhtar,

You can connect to your Azure VM mainly in two ways. One from the cloud shell itself. It is available to the Azure portal. And another way is Putty or command line. The following command can be used in the command line to connect the Azure VM.

$ ssh -i <private key path> azureuser@<Public IP>


Hope it helps!

If you want to become Azure solution architect, then join Azure online course today.

Thank you!!

answered Nov 11, 2020 by MD
• 95,300 points

Related Questions In Azure

0 votes
2 answers

How can I download a .vhd image to my local machine from azure and upload the same to a different azure account?

From the Windows Azure Portal you can ...READ MORE

answered Aug 20, 2018 in Azure by Priyaj
• 58,140 points
11,322 views
0 votes
1 answer
+1 vote
4 answers

How do Connect to Azure website via FTP?

First set up your FTP credentials are ...READ MORE

answered Oct 23, 2018 in Azure by abc
1,790 views
0 votes
1 answer

How to determine the number of messages in an Azure Services Bus Queue?

You will get error when you try ...READ MORE

answered Jun 12, 2018 in Azure by null_void
• 3,220 points
2,606 views
0 votes
1 answer

How to connect to Azure windows VM?

You'll use the Connect button in the Azure portal ...READ MORE

answered Jan 20, 2020 in Azure by Sirajul
• 59,070 points
15,484 views
0 votes
1 answer

What are azure functions? What is their use?

Azure Functions is a serverless computing service hosted ...READ MORE

answered Jan 10, 2020 in Azure by Sirajul
• 59,070 points
874 views
0 votes
1 answer
0 votes
1 answer

How to copy files from the Windows system to Azure VM?

Hi@akhtar, You can use WinSCP software to transfer ...READ MORE

answered Nov 11, 2020 in Azure by MD
• 95,300 points
1,210 views
0 votes
1 answer

How to delete a deployment from the deployment history in Azure?

Hi@akhtar, A template deployment that is currently running ...READ MORE

answered Nov 15, 2020 in Azure by MD
• 95,300 points
303 views