Fixing warning: Permissions 0644 for '/Users/darshan/.ssh/id_rsa' are too open.

Davids-Mac:work darshan$ git clone root@git.kmdarshan.com:Local/foo
Cloning into ‘foo’…
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for ‘/Users/darshan/.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.
bad permissions: ignore key: /Users/darshan/.ssh/id_rsa
root@git.kmdarshan.com’s password:
Permission denied, please try again.
Permission denied (publickey,password).
fatal: The remote end hung up unexpectedly
Solution:
Change the permission of id_rsa to :
chmod 700 id_rsa
This file is present in your home folder. Goto ~/.ssh
This should fix your errors.

Leave a Reply

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