'Git project permission denied
I ran
git clone [email protected]:{username}/{project}.git
fatal: Could not rerad from remote repository. Please make sure you have the correct access rights and the repository exists.
so:
ssh-add ~/.ssh/id_rsa
No such file or directory, hmm...
mkdir ~/.ssh/id_rsa
WARNIG: UNPORTECTED PRIVATE KEY FILE! Permissions 0775 for .... are too open.
Solution 1:[1]
To complemet the comments and the steps to follow, keep in mind ssh-add is only needed if you have created a private key protected with a passphrase.
If you use
cd ~
mkdir .ssh
chmod 700 .ssh
cd .ssh
ssh-keygen -t rsa -P ""
That will create id_rsa and id_rsa.pub, the latter (public key) is to be registered in your GitHub profile settings.
Test the access with ssh -Tv [email protected] to ensure yu are correctly authenticated.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | VonC |
