Should you obtain the next error when making an attempt to clone a Git repository:
deadly: Couldn't learn from distant repository.
The complete message could look one thing like this:
$ git clone [email protected]:org/repo.git
Cloning into 'repo'...
Dangerous proprietor or permissions on /Customers/ao/.ssh/config
deadly: Couldn't learn from distant repository.
Please be sure you have the proper entry rights
and the repository exists.
How you can remedy this error
ssh-add ~/.ssh/id_rsa
the place id_rsa is a ssh key related to the repo.
Should you get the next error at this stage: Couldn't open a connection to your authentication agent., then you definitely first have to run the next:
eval `ssh-agent -s`
or:
eval $(ssh-agent -s)
Permissions 0777 for ‘/Customers/ao/.ssh/id_rsa’ are too open
Should you get this permissions error, then you’ll be able to repair the id_rsa permissions by doing this:
chmod 0400 ~/.ssh/id_rsa