#5164 Not able to use pagure ssh to git clone ssh://git@pagure.io/forks/akshays/pagure.git
Closed: Fixed Opened by akshays.

= phenomenon =
i am not able to use git clone ssh://git@pagure.io/forks/akshays/pagure.git
i get error as shown below

Cloning into 'pagure'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

= background analysis =

= implementation recommendation =


Replying to [ticket:5164 akshays]:

Permission denied (publickey).
fatal: Could not read from remote repository.

Just to get this out of the way — have you provided pagure with your public key? It doesn't automatically import from FAS. (At least, it didn't mine.)

In pagure account settings i have added the key

Replying to [comment:2 akshays]:

In pagure account settings i have added the key

Can you double-check that, just to be sure?

This was caused by a bug in gnome-keyring-daemon we've seen quite often where it doesn't pick up a changed key due to an aggressive cache.
Restarting the machine fixed the issue.

For the record: you can verify this issue by using ssh with three -v's (ssh -vvv git@pagure.io).

If it display "sign_and_send_pubkey: signing failed: agent refused operation", that means this bug hit: gnome-keyring-daemon first tells the remote server that it has this private key, and then when asked to proof it has the key it bails out.

I found the way.
1. Go to "My Settings" -> "SSH Keys" and confirm the current ssh key is copied from Fedora project.
2. Add "pagure.io" in HOST section in $HOME/.ssh/config so that $HOME/.ssh/id_rsa_fedora is pulled.

Metadata