azureuser xxxxxxxx Permission denied publickey gssapi-keyex gssapi-with-mic

0 votes

Hi Guys,

I have one Virtual Machine in Azure Cloud. I want to connect to the VM from the command line. But it is showing me the below error.

Warning: Permanently added 'xxxxxxxxxxxx' (ECDSA) to the list of known hosts.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions for 'NewVM_key.pem' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "NewVM_key.pem": bad permissions
azureuser@xxxxxxxxxxxx: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
Nov 11, 2020 in Azure by akhtar
• 38,230 points
3,296 views

1 answer to this question.

0 votes

Hi@akhtar,

I think there is a permission issue with the key file. Ensure that you have read-only access to the private key. If not, then you can use the below command.

$ chmod 400 <private key file>


Hope it helped!

If you need to know more about Azure, then you should join Azure training course online today.

Thank you!!

answered Nov 11, 2020 by MD
• 95,440 points

Related Questions In Azure

0 votes
1 answer

Not being able to get user consent - OAuth2 with AzureAD

The problem you are running in to ...READ MORE

answered Jun 8, 2018 in Azure by cloudie_crank
• 1,610 points
1,801 views
0 votes
1 answer

How can i upload to Azure Blob storage with Shared Access key?

For GetBlobReferenceFromServer to work, the blob must be present ...READ MORE

answered Jun 12, 2018 in Azure by club_seesharp
• 3,450 points
3,340 views
0 votes
1 answer

Error: OAuth integration with O365 fails with error AADSTS65005

By default, a registered app is configured ...READ MORE

answered Aug 10, 2018 in Azure by club_seesharp
• 3,450 points
627 views
0 votes
1 answer

How can I use “Azure File Storage” with Web App Service?

If you're looking for mapping a drive ...READ MORE

answered Aug 11, 2018 in Azure by null_void
• 3,220 points
3,942 views
0 votes
1 answer

What is Azure Cloud Service?

Azure Cloud Services is an example of ...READ MORE

answered Jan 10, 2020 in Azure by Sirajul
• 59,230 points

edited Jun 21, 2023 by Khan Sarfaraz 823 views
0 votes
2 answers

Azure DevOps and its need?

Azure DevOps is a hosted service providing ...READ MORE

answered Aug 29, 2020 in Azure by nbavis
• 380 points
971 views
0 votes
1 answer

What is Azure stack?

Azure Stack is a hybrid cloud computing software solution ...READ MORE

answered Jan 10, 2020 in Azure by Sirajul
• 59,230 points
674 views
0 votes
1 answer

How is Azure Cosmos db different from an Azure SQL db?

Azure Cosmos DB is Microsoft’s globally distributed database ...READ MORE

answered Jan 10, 2020 in Azure by Sirajul
• 59,230 points
1,869 views
0 votes
1 answer

How to login to Azure with Azure CLI?

Hi@akhtar, You can run the Azure CLI with ...READ MORE

answered Nov 10, 2020 in Azure by MD
• 95,440 points
677 views
0 votes
1 answer

admin user name cannot contain upper case character A-Z, special characters \/"[]:|<>+=;,?*@#()! or start with $ or - in Azure

Hi@akhtar, you can specify --admin-username to provide a username for ...READ MORE

answered Nov 11, 2020 in Azure by MD
• 95,440 points
1,620 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP