git ssh authentication failure

2 visualizzazioni (ultimi 30 giorni)
Matt Griffith
Matt Griffith il 25 Lug 2019
Modificato: Matt Griffith il 25 Lug 2019
Hello all,
I'm using a remote git repository hosted by Google Cloud Source Repositories. Git integration with Matlab is working for my local sandbox, however when I try to push I get the following error:
ssh://mgriffith%40ematrixenergy.com@source.developers.google.com:2022/p/ematrix/r/Software: Auth fail
I am able to push just fine from powershell and gitbash.
I followed the example in this thread to set things up.
When I run
git remote -v
I get the following output:
google ssh://mgriffith@ematrixenergy.com@source.developers.google.com:2022/p/ematrix/r/Software (fetch)
google ssh://mgriffith@ematrixenergy.com@source.developers.google.com:2022/p/ematrix/r/Software (push)
origin ssh://mgriffith@ematrixenergy.com@source.developers.google.com:2022/p/ematrix/r/Software (fetch)
origin ssh://mgriffith@ematrixenergy.com@source.developers.google.com:2022/p/ematrix/r/Software (push)
Notice how the first @ is replaced by %40 in the error message. Also when I try to use Matlab to set the remote url it will actually replace the @ with %40 in my ~\.git\config file
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
[credential]
helper =
helper = !gcloud.cmd auth git-helper --account=mgriffith@ematrixenergy.com --ignore-unknown $@
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = ssh://mgriffith%40ematrixenergy.com@source.developers.google.com:2022/p/ematrix/r/Software
[branch "master"]
remote = origin
merge = refs/heads/master
[gui]
wmstate = zoomed
geometry = 543x401+30+30 392 255
[remote "google"]
url = ssh://mgriffith@ematrixenergy.com@source.developers.google.com:2022/p/ematrix/r/Software
fetch = +refs/heads/*:refs/remotes/google/*
I'm guessing that replacing the @ with %40 is the root of the problem, but I'm not sure. Any help would be greatly appcieated.
Thank you,
Matt

Risposte (0)

Categorie

Scopri di più su Data Import and Analysis in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by