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...
... 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!