필터 지우기
필터 지우기

problem cloning an existing git repo

조회 수: 15 (최근 30일)
francesco mantegazza
francesco mantegazza 2021년 4월 24일
편집: Andreas Viborg 2024년 1월 9일
Hi everybody,
I have a problem cloning a git repo. I followed the instructions provided by this link
creating a my ssh keys and placing them in the right directory for MATLAB to retrieve them, but I get an error when I try to clone the repo:
Git internal error (Code = -1, Class = 23): Failed to authenticate SSH session: Unable to open public key file
I don't know what to do because I'm pretty sure the ssh exists, has been associated to my git account properly and indeed the check works fine when I validate it inserting my password. Also the environment variable has been set correctly.
Thanks
  댓글 수: 2
francesco mantegazza
francesco mantegazza 2021년 4월 24일
Yes I did, I tried to regenerate the ssh keys with the suggested command, restarted matlab but it didn't work unfortunately.
My problem indeed has to do with a previous step since I haven't been able to clone the repo yet.
Thanks for your help

댓글을 달려면 로그인하십시오.

답변 (1개)

Andreas Viborg
Andreas Viborg 2024년 1월 9일
편집: Andreas Viborg 2024년 1월 9일
I might need to specify the SSH-key explicitly, either type this on the command line or in your startup.m file:
git = settings().matlab.sourcecontrol.git;
git.PrivateKeyFile.PersonalValue = "C:\Users\username\.ssh\id_ed25519";
git.PublicKeyFile.PersonalValue = "C:\Users\username\.ssh\id_ed25519.pub";
See
https://se.mathworks.com/help/matlab/matlab_prog/set-up-git-source-control.html

카테고리

Help CenterFile Exchange에서 Source Control Integration에 대해 자세히 알아보기

태그

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by