How to fix this problem ??

Namsu Thapa 0 Reputation points
2024-11-20T21:43:25.6866667+00:00

microsoftazure

Hi there, I have this problem whenever I try to connect OpenSuse 15.5 in my Microsoft azure. I am a beginner in Azure. I would like someone to help me with this.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,056 questions
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,392 questions
Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
7,244 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,533 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Akshay kumar Mandha 1,265 Reputation points Microsoft Vendor
    2024-11-21T11:01:18.93+00:00

    Hi Namsu Thapa,
    Thank for patience while we are reviewing your query.
    Based upon your query, I understand your concern you are not able to access
    There are some limitations when accessing the private key to log in to the Linux VM from Azure CLI, as well as locally. To resolve this, you need to remove some user permission restrictions I mentioned each step with screenshot for your reference please follow those steps to resolve your issue
    Please execute the below commands at the path where your file downloaded private key SSH is located on your local machine
    Example:- file path--->C:/Akshay

    icacls <Privatefilename.prem> /inheritance:r
    icacls <Privatefilename.prem> /grant "%username%":F
    icacls <Privatefilename.prem>
    

    After that your private key is accessible only to the current user. once you have completed the above steps, please try the following choose 'Native SSH,' as shown in the image below. You can also use Azure CLI, but it has limitations. Therefore, we recommend using Native SSH
    User's image
    And in the other section, please paste the path of your downloaded key file, as shown in the image below.
    User's image

    After that, copy the path from the second section (indicated by the second arrow). Then, open Command Prompt as Administrator and paste the copied path from the portal. After logging in, you should be able to see the interface as shown in the image below.
    User's image

    if you see, this is a complex process. It might be better to create the using a username and password instead of generating a private SSH key
    If you need any other information, please let us know, we will always support as you needed.!

    If you found this information helpful and my inputs, please click an accepting the answer and don't forget to "Upvote" on my post for other community members referenceUser's image

    0 comments No comments

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.