question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Authentication fails on macOS 10.14

See original GitHub issue

Description

On macOS 10.14 beta (Mojave), anything requiring authentication gives the error: Authentication failed. You may not have permission to access the repository or the repository may have been archived. Open preferences and verify that you're signed in with an account that has permission to access this repository.

Version

  • GitHub Desktop: 1.2.3
  • Operating system: macOS 10.14 Beta

Steps to Reproduce

Log in to a GitHub account and attempt to pull or push to a private repository while running the 10.14 beta.

Logs

2018-06-13.desktop.production.log

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

17reactions
tilltcommented, Dec 7, 2018

Try

git config --global --add core.sshCommand "ssh"
6reactions
ScGPScommented, Oct 10, 2018

Hi, I encount this issue with Jenkins Node, in plist mode.

 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url git@xxx.com:one/app_mac.git # timeout=10
Fetching upstream changes from git@xxx.com:one/app_mac.git
 > git --version # timeout=10
using GIT_SSH to set credentials username: jenkins come from Jenkins Agent deployed user in OS. IP: .(One Project,MacOS Mini)
 > git fetch --tags --progress git@xxx.com:one/app_mac.git +refs/heads/*:refs/remotes/origin/*
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from git@xxx.com:one/app_mac.git
	at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:817)
	at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1084)
	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1115)
	at hudson.scm.SCM.checkout(SCM.java:495)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1276)
	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:560)
	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:485)
	at hudson.model.Run.execute(Run.java:1735)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:97)
	at hudson.model.Executor.run(Executor.java:405)
Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress git@xxx.com:one/app_mac.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout: 
stderr: jenkins@xxx.com: Permission denied (publickey).
fatal: Could not read from remote repository.

I also use '$ ssh-agent -s $ ssh-add ~/.ssh/id_rsa ', but it not work. Please help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mojave 10.14.4 fails to Authenticate Gmail account
4 fails to Authenticate Gmail account. Just update to Mojave 10.14.4 and now Apple Mail will NOT connect to one of my Gmail...
Read more >
How to fix failed user authentication? I'm on macOS 10.14.6 ...
Go to the System Preferences > Network. · Find the NordVPN related network interfaces. · Use the minus (-) symbol button to delete...
Read more >
How to Fix Mojave 10.14.4 Fails to Authenticate Gmail Account
The recent Mojave update caused a few changes in how Google is used. Here's what to do when Mojave 10.14.4 fails to authenticate...
Read more >
How to fix Mojave 10.14.4 fails to Authenticate gmail account?
How to fix Mojave 10.14.4 fails to Authenticate gmail account. 1. Re-Authenticate macOS Mojave to access gmail account.
Read more >
External Authentication/Active Directory may fail under macOS ...
With the introduction of macOS Mojave 10.14, FileMaker Server cannot authenticate against Multi Level groups (nested groups) in Active Directory.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found