git ssh authentication failure

2 ビュー (過去 30 日間)
Matt Griffith
Matt Griffith 2019 年 7 月 25 日
編集済み: Matt Griffith 2019 年 7 月 25 日
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

回答 (0 件)

カテゴリ

Help Center および File ExchangeData Import and Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by