using PuttyGen key for pushing to Git

조회 수: 2 (최근 30일)
Laurent Dalbies
Laurent Dalbies 2018년 11월 15일
답변: Laurent Dalbies 2018년 12월 12일
Hello,
I'm using Simulink project linked with a Git repository on a remote server. I have generated a pair of ssh key with PuttyGen (format SSH2-RSA). The public key is declared in my remote server and the private key is on my Pc %USER_PROFILE%/.ssh. I can push/pull with Tortoise Git => my config is OK. If I want to push with Matlab instead ("push" button of the Source Control section of the SIMULINK PROJECT tab), i'm requested to enter a password which, btw, I don't know (tried my company SSO password, not valid).
But, if I generate a new pair of keys with GitBash (openSSH SSH-2 format) instead of PuttyGen, I declare this new public key on my remote server and save the private key on my .ssh folder, then it's ok I can push with Matlab.
Are there any limitations using keys generated with PuttyGen ?
Regards
Laurent
  댓글 수: 1
Andrew Willaim
Andrew Willaim 2018년 12월 7일
Hi Laurant,
I was facing the same issue while using the Git on a remote server.
Finally, a guide on puttygen.com worked for me to generate the keys and luckily it has no limitations as well.

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

채택된 답변

Laurent Dalbies
Laurent Dalbies 2018년 12월 12일
Posting the solution I finally found.
Matlab seems to detects only OpenSSH keys. I've generated a key with puttygen and converted it to OpenSSH format with puttyGen, and I'm now able to push, fetch, pull, etc...
WARNING : the converted file must be named id_rsa
convert.png

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Project Management에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by