Nasir Uddin January 22, 2018 No Comments

Already you generated your ssh key using the below command.
and you entered the key in Access keys of bitbucket. But still it’s displaying
Permission denied (publickey).
fatal: Could not read from remote repository.

Now what you can do??

First of all, You need to check the identities of the ssh agent using the below command:

eval `ssh-agent -s`
ssh-add -l

When you run the above commands, you can see the below message in your terminal:
The agent has no identities
To fix it you should add rsa private key using the below command:
ssh-add ~/.ssh/id_rsa
Now you can see your actual ssh public key using the below command:
cat ~/.ssh/
Thanks. Enjoy it!

Leave a Reply