OpenSSH "permission denied" error

If your private key file (e.g. ~/.ssh/id_rsa) has too much permission, OpenSSH will complain “permission denied” and not work. By default, the permission might be something like 644 or 700. You need to set it to 600. (Got the solution from this article)