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
And in the other section, please paste the path of your downloaded key file, as shown in the image below.
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.
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 reference