can not access the SSH from my laptop with this error - Permissions 0644 for 'x.pem' are too open.

azure_savy 0 Reputation points
2024-06-26T18:13:18.9933333+00:00

ssh -i x.pem user@1.1.1.1

The authenticity of host '1.1.1.1 (1.1.1.1)' can't be established.

RSA key fingerprint is SHA256:mMt4o9JtTVNZce/0CNnSK0.

This key is not known by any other names.

Are you sure you want to continue connecting (yes/no/[fingerprint])? yes

Warning: Permanently added '1.1.1.1' (RSA) to the list of known hosts.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Permissions 0644 for 'x.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 "x.pem": bad permissions

user@1.1.1.1: Permission denied (publickey).

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

1 answer

Sort by: Most helpful
  1. azure_savy 0 Reputation points
    2024-06-26T18:16:15.42+00:00

    ok chmod 400 worked.