WARNING: UNPROTECTED PRIVATE KEY FILE!

Problem

Warning: Permanently added 'xxx.xxx.xxx.xxx' (ED25519) to the list of known hosts.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for '/Users/your_username/.ssh/id_rsa.key' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/Users/your_username/.ssh/id_rsa.key": bad permissions
[email protected]: Permission denied (publickey).

Cause

This is a security validation because 644 means that another users who using this machine has rights to read this file.

Solution

sudo chmod 600 ~/.ssh/id_rsa

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Select your currency
USD United States (US) dollar