How to connect to Azure VM from the command line?

Microsoft Azure

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?

1
Answers

Replies

There are two different ways applicable to connect to Azure VM from the command line. One way is to connect from the Powershell itself, while the other uses the command line or putty. The below command can be used to connect to Azure VM from the command line.


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

 
 

If you want to unleash your potential in this competitive field, please visit the Microsoft Azure course page for more information, where you can find the Microsoft Azure tutorials and Microsoft Azure frequently asked interview questions and answers as well.

 

This topic has been locked/unapproved. No replies allowed

Login to participate in this discussion.

Leave a reply

Before proceeding, please check your email for a verification link. If you did not receive the email, click here to request another.