After the latest Manjaro upgrade, git is not able to use Public Key


During git pull, the following error is raised:

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

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

Suspicious libs during update:

[2021-10-11T10:49:53+0300] [ALPM] upgraded libssh2 (1.9.0-3 -> 1.10.0-1)
[2021-10-11T10:49:57+0300] [ALPM] upgraded libgit2 (1:1.1.1-1 -> 1:1.2.0-1)
[2021-10-11T10:50:01+0300] [ALPM] upgraded openssh (8.7p1-2 -> 8.8p1-1)


  • when git remote is HTTPS - it works fine
  • when git remote is ssh (like ssh:// - it doesn’t work anymore

Public key is correct, colleages that didn’t do any update can successfully using git as previously.

So from my POV - the bug is in the updated libs.

Maybe your key use SHA1 algorithm which was dropped with last update as weak and unsecure. If that’s case you should generate new, stronger key.

1 Like

Most likely you just need to create a new key.

ssh-keygen -t rsa -b 2048 -f ~/.ssh/$keyfilename
1 Like

Thank you.

I didn’t remove my existing key ( and generated a new one as shown here SSH user keys for personal use | Bitbucket Data Center and Server 7.6 | Atlassian Documentation

its name is so doesn’t conflict with the previous one. This new public key has been added to BitBucket and now git commands work as expected.


This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.