Fix id_rsa permission are too open

On mac, when you copy ur backed up id_rsa from other computer, it will show an error

permissions 0644 for xxx.git are too open

This means too danger to it has this permission. In order to fix it, just make sure you are in directory .ssh, then change permission back to 0400. Boom~~

Terminal

cd .ssh
chmod 400 id_rsa

References
1. https://stackoverflow.com/questions/29933918/ssh-key-permissions-0644-for-id-rsa-pub-are-too-open-on-mac/29948797

Photo by Artem Bali on Unsplash