A permissoin denied (PublicKey) error occurred from the GitHub clone repository to the local after the SSH key was created.
Refer to the official documentation (Generating-ssh-keys) method to add the SSH key to Ssh-agent:
Connect to Ssh-agent:
Ssh-agent-s
To add a private key:
Ssh-add ~/.ssh/id_rsa
A could not open a connection to your authentication agent error appears.
You need to do this before connecting to the Ssh-agent:
Ssh-agent Bash
This will make the clone a success:
$ git clone [email protected]:d nawym/concurrency.gitcloning into ' Concurrency ' ... Warning:permanently added the RSA host key for IP address ' 192.30.252.131 ' to the list of known hosts.remote:Counting OB Jects:35, done.remote:Compressing objects:100% (16/16), Done.remote:Total (Delta), reused (Delta 9), Pack-reu Sed 0Receiving objects:100% (35/35), 3.32 KiB | 0 bytes/s, done. Resolving deltas:100% (10/10), done. Checking connectivity ... done.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
git clone Permission denied (PublicKey)