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~~


cd .ssh
chmod 400 id_rsa


Photo by Artem Bali on Unsplash