GITHub SSH key: avoid OPENSSH while having a "sha-2 signature" SSH key to meet requirements by both R2020a and GITHub after Nov2021
조회 수: 4 (최근 30일)
이전 댓글 표시
How to generate a SSH key, that is supported by BOTH Matlab R2020a (NOT OPENSSH formated) and GITHub's Safety Protocol after Nov2021 (SHA-2 signature)?
Context:
Matlab R2020a does not support OPENSSH formated SSH keys. Thus, Mathwork Help center recommends generating SSH keys in PEM format, e.g.
ssh-keygen -m PEM
From my experience, playing around with ssh-keygen, this "-m PEM" extension will produce a RSA type SSH file.
When trying to use such RSA type SSH key for any GIT operation in the MATLAB GUI (e.g. right click at current folder -> Source Control-> retrieve), I get an error...
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1115220/image.jpeg)
... indicating that RSA type SSH keys with SHA-1 signature are no longer supported by GITHub due to git protocol security updates on GitHub around Nov2021:
By searching the internet, there might be RSA type SSH keys with SHA-2 signatures rather than SHA-1, e.g.:
ssh-keygen -t rsa-sha2-512 -b 4096 -C "GITHub ID" -m PEM
Yet, same error occurs, which brings up my inital question: How to generate a suitable SSH key for Matlab R2020a respecting the latest GITHub security protocol changes???
PS: I am aware, that newer versions of Matlab dont have this issue.
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Instrument Connection and Communication에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!