How to connet via SSH on Azure VM

When you create your VM if you are not manually select port 22 open the SSH will not be enabled. So in order to connect via SSH on Cloud Shell or on your computer Terminal, follow the below steps:

  1. Select the VM
  2. Select “Networking”
  3. On the right, select “Add inbound port rule”. This should open a popup

Source: Any (default)
Source port range: * (default)
Destination: Any (default)
Destination port ranges: 22
Protocol: TCP
Action: Allow
Priority: 330 (default)
Name: Enable 22 (can be anything you can identify)
Select “Add“

II. Connect using certificate (tommorow)

Leave a Reply

Your email address will not be published. Required fields are marked *