unable to connect to virtual machine by powershell

yimai yan 1 Reputation point
2021-11-15T14:28:16.337+00:00

I was following the structure here https://learn.microsoft.com/en-us/azure/virtual-machines/linux/quick-create-portal I cant create an SSH connection with the VM.
it said permission denied(pubickey),please help, thanks!
149462-q.jpeg

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. sadomovalex 3,636 Reputation points
    2021-11-15T14:43:48.023+00:00

    can you connect to this VM via RDP?

    0 comments No comments

  2. vipullag-MSFT 26,522 Reputation points Moderator
    2021-12-01T11:10:48.313+00:00

    @yimai yan

    Can you please check if the required ports (for your Linux VM) port 22 is open on the public IP or not using this link.
    Try to convert the .pem key to .ppk using puttygen and check if you can access the VM using putty tool.

    Hope this helps.
    Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics.

    0 comments No comments

Your answer

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