How to SSH to a virtual machine on Mac OS

innoaca-0016 20 Reputation points
2023-08-30T11:43:36.61+00:00

https://learn.microsoft.com/ko-kr/azure/virtual-machines/linux/quick-create-portal?tabs=ubuntu

I created a virtual machine based on the instructions on the page above.

After creating the virtual machine, you want to make an SSH connection from your local host to the virtual machine.

On the page I posted above, and on the MS Azure virtual machine page, the connection section says that I need a .pem file.

However, when I created the SSH key, it downloaded a .cer file.

How do I connect?

Do I just replace the .cer file with the .pem file and connect?

I tried to connect by replacing the .cer file with a .pem file, but it didn't work.

How do I link it? Please explain how to link it.

Thanks

Translated with DeepL

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,013 questions
{count} votes

Accepted answer
  1. msrini-MSFT 9,291 Reputation points Microsoft Employee
    2023-09-02T04:41:28.41+00:00

    Hi,

    For Linux VMs, you have 2 options, one is to use Public key and another way is to use password as Windows VMs.

    If you don't have any dependencies with using Public Keys, you can use Password. if you do have dependency, you can use Azure Cloudshell to generate key, store the key in Azure ssh key and use them.

    Regards,

    Karthik Srinivas

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.