git ssh authentication failure
조회 수: 2 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Import and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!