passforios icon indicating copy to clipboard operation
passforios copied to clipboard

Unable to pull/push from repository: "GTCredentialProvider failed to provide credentials"

Open kdtsh opened this issue 4 years ago • 15 comments

Hi Mingshen,

I have found recently that I am unable to pull/push from my password store repository due to an error which says "GTCredentialProvider failed to provide credentials". I have tried using incorrect SSH credentials and get a different error, so I am sure I am using the correct password for my SSH key.

I am using key-based authentication. This issue started for me around 15 October. I am not sure if this issue coincides exactly with my update to iOS 15.0.2, but it is very close.

Some phone details:

  • iPhone 12 mini
  • iOS 15.0.2

Some details about my password store repository:

  • git 2.33.1 (I have tried downgrading to git 2.32 which did not help unfortunately)
  • openssh 8.8p1
  • SSH key authentication enforced

Many thanks, if there is any other info I can provide please let me know.

Edit (2021-11-02): I have worked around this by using ssh with password authentication and without keys, which is not a significant issue for me right now - but keys definitely make me sleep easier at night ...

kdtsh avatar Oct 17 '21 10:10 kdtsh

I also ran into this since trying to build and run for iOS 15, very unfortunate and I cannot pinpoint the cause or find a fix. Do you not have any issues when building and running from scratch and then pulling the repo during setup using SSH @mssun? @SimplyDanny

sanderdekoning avatar Oct 25 '21 10:10 sanderdekoning

I have the same problem too in iOS 15. I use password to login to github

ErnestDong avatar Oct 29 '21 08:10 ErnestDong

Got the same issue when upgrading to iOS 15, my current workaround is to use pass from within iSH (lightweight Linux VM) instead...

Kafva avatar Oct 29 '21 08:10 Kafva

I have the same problem too in iOS 15. I use password to login to github

fixed with ssh key. by here

ErnestDong avatar Oct 29 '21 08:10 ErnestDong

I'm also having the same issue on iOS 15.0.2 and self-hosted git repository using ssh keys. Tried a fresh start on the app and still the same issue. I can push/pull on all my other devices using this self-hosted git repository.

I have the same problem too in iOS 15. I use password to login to github

fixed with ssh key. by here

Using GitHub with ssh works, but still no luck with my self-hosted git repository.

barbosaaob avatar Oct 30 '21 12:10 barbosaaob

Hi Mingshen,

I have found recently that I am unable to pull/push from my password store repository due to an error which says "GTCredentialProvider failed to provide credentials". I have tried using incorrect SSH credentials and get a different error, so I am sure I am using the correct password for my SSH key.

I am using key-based authentication. This issue started for me around 15 October. I am not sure if this issue coincides exactly with my update to iOS 15.0.2, but it is very close.

Some phone details:

  • iPhone 12 mini
  • iOS 15.0.2

Some details about my password store repository:

  • git 2.33.1 (I have tried downgrading to git 2.32 which did not help unfortunately)
  • openssh 8.8p1
  • SSH key authentication enforced

Many thanks, if there is any other info I can provide please let me know.

I cloned my repository to a machine running Debian 11 with OpenSSH_8.4p1 and OpenSSL 1.1.1k and could make the app push/pull again. I can also push/pull from GitHub. I still can't push/pull from my OpenBSD running OpenSSH_8.8, LibreSSL 3.4.1. Seems like a ssh/{libre,open}ssl related issue.

barbosaaob avatar Oct 30 '21 13:10 barbosaaob

I can confirm @barbosaaob @ErnestDong @Kafva @kdtsh that in my case it seems that GitLab was causing some sort of issue in the app; I tried to configure Pass and clone with SSH and a GitHub hosted repository and that didn't give me any issues. So some self-hosted git repository - including hosted Gitlab, give issues in the current build.

sanderdekoning avatar Oct 30 '21 15:10 sanderdekoning

having the same issue here, iphone 12 mini, ios 15.1, generated a fresh keypair and authorized it on my server and still no luck. i should mention that i just got this phone.

7596ff avatar Nov 02 '21 00:11 7596ff

I am also having the same issue, though I can't do an initial sync. My server is running:

  • 5.14.12-arch1-1
  • git version 2.33.1
  • openssh 8.8p1-1 My iphone 8 is running:
  • passforios 0.11.0
  • ios 14.7.1

I am pretty sure that this is happening due to my own error thogh.

aflyingpumpkin avatar Nov 04 '21 20:11 aflyingpumpkin

So this issue came back for me again when cloning the repo and trying to build. First I ran into issues building, then when I got that working I ran into both the infamous This URL protocol is not supported and the Provider failed to provide credentials errors. Here is how I got building to succeed on my setup

Built on macOS 11.6, using Xcode 13.1.0+13A1030d - Intel Mac (non apple silicon - if you can build on Apple Silicon please let me know how) On master - afe0397dcf1ca5522d27e5744fcfa79598f32123 Swift: 5.3.1 (set by .swift-version, ensure it is installed with swiftenv install 5.3.1) Go: 1.17.1

Run: export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/libssh2/lib/pkgconfig/" https://github.com/mssun/passforios/blob/afe0397dcf1ca5522d27e5744fcfa79598f32123/.github/workflows/deploying.yml#L44 Update carthage with: ./scripts/wcarthage update --platform iOS --use-xcframework Bootstrap carthage with: ./scripts/wcarthage bootstrap --platform iOS --no-use-binaries --cache-builds

sanderdekoning avatar Dec 04 '21 21:12 sanderdekoning

I was having the same problem using a self hosted Gitlab instance, and even went through the trouble of setting up a Gitea server just to see if Gitlab was really the issue. It wasn't. When I changed the password repo in settings to my Gitea server, I was getting the same error.

The solution for me was to go to Settings->Advanced->Erase All Password Store Data. You can't simply reinstall the app, you need to erase all data through that menu item. (If you have any unsynced passwords, make sure to back them up!)

After doing that, I was able to set up syncing with my Gitlab server like always.

AlexRamallo avatar Dec 06 '21 16:12 AlexRamallo

I'm also having this issue, I suspect for the same reason as @barbosaaob (I'm also running OpenSSH 8.8, LibreSSL 3.4.1). It appears there's a bug in OpenSSH 8.8 such that the default PubkeyAcceptedAlgorithms list does not include ssh-rsa (although the documentation says it should).

The fix is to add the following line to sshd_config:

PubkeyAcceptedAlgorithms +ssh-rsa

Edit: This isn’t a bug. The OpenSSH maintainers have opted to remove ssh-rsa as a signature algorithm, while still permitted RSA style keys. I’ve opened a bug to get signature support for Pass updated since, if this is the way OpenSSH is going, others will likely follow suit.

djmoch avatar Dec 06 '21 21:12 djmoch

@djmoch thank you! I've been trying to self-host my git repo but I think this was the problem! Adding this to my sshd_config definitely worked! Although the following is probably in the docs of ssh, note that the sshd_config should be added to /etc/ssh/ssh_config and not to the .ssh/ directory of the user. Of course, one must restart the sshd service after making any changes to this config file.

I can also confirm that this issue is gone when using a git remote provider such as github (using ssh keys too).

specs:

# uname --all
Linux machine 5.15.4-arch1-1 #1 SMP PREEMPT Sun, 21 Nov 2021 21:34:33 +0000 x86_64 GNU/Linux

# sshd -v
unknown option -- v
OpenSSH_8.8p1, OpenSSL 1.1.1l  24 Aug 2021

TrevCan avatar Dec 14 '21 06:12 TrevCan

Inferring from the solution to whitelist the rsa algorithm for self-hosted repos: this may help if you dont self-host: https://github.com/mssun/passforios/issues/218#issuecomment-1705090931 tldr: ed25519 worked for me

VVishion avatar Sep 04 '23 11:09 VVishion