How to Log on to a Virtual Machine Running Linux
Azure has two different deployment models for creating and working with resources: Resource Manager and classic. This article covers using the classic deployment model. Microsoft recommends that most new deployments use the Resource Manager deployment model.
You'll need to install an SSH client on the computer you want to use to log on to the virtual machine. There are many SSH client programs that you can choose from. The following are possible choices:
- On a computer running a Windows operating system, you might want to use an SSH client such as PuTTY. For more information, see the PuTTY Download Page.
- For a virtual machine running a Linux operating system, you use a Secure Shell (SSH) client to log on; it is hard to think of a distribution that doesn't already have this installed by default. See How to use SSH for a bit more information about Linux.
For more requirements and troubleshooting tips, see Connect to an Azure virtual machine with RDP or SSH.
This procedure shows you how to use the PuTTY program to access the virtual machine.
Find the Host Name and Port information from the Management Portal. You can find the information that you need from the dashboard of the virtual machine. Click the virtual machine name and look for the SSH Details in the Quick Glance section of the dashboard.
Open the PuTTY program.
Enter the Host Name and the Port information that you collected from the dashboard, and then click Open.
Log on to the virtual machine using the account that you specified when the machine was created. For more details on how to create a virtual machine with user name and password, see Create a Virtual Machine Running Linux.
The VMAccess extension can help you reset the SSH key or password if you've forgotten it. If you've forgotten the user name, you can use the extension to create a new one with sudo authority. For instructions, see the How to Reset a Password or SSH for Linux Virtual Machines.
You can now work with the virtual machine just as you would with any other server.