[Solved] deadly: Couldn’t learn from distant repository with Git
For those who obtain the next error when attempting to clone a Git repository:
deadly: Couldn't learn from distant repository.
The total message could look one thing like this:
$ git clone [email protected]:org/repo.git Cloning into 'repo'... Unhealthy 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 one can clear up this error#
id_rsa is a ssh key related to the repo.
For those who get the next error at this stage:
Couldn't open a connection to your authentication agent., you then first have to run the next:
eval `ssh-agent -s`
eval $(ssh-agent -s)
Permissions 0777 for ‘/Customers/ao/.ssh/id_rsa’ are too open#
For those who get this permissions error, then you’ll be able to repair the
id_rsa permissions by doing this:
chmod 0400 ~/.ssh/id_rsa