SSH login fails with the error "This private key will be ignored." How do I resolve this?

Symptom

SSH login fails. The target Virtual Machine displays the message: "Permissions 0777 for '~/.ssh/id_rsa' are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored."

Cause

The permissions on id_rsa are too permissive, causing SSH login to fail.

Solution

  • Run chmod 700 id_rsa to reassign the correct permissions. The login resumes normally.

On this page