Hello,
I have set up a private local registry with which to share packages with some collaborators. When I set the registry up I had to create and add a new SSH key to my github account because according to the local registry documentation you have to use one with the PEM format. I created the SSH key using the command (given from the docs)
ssh-keygen -t rsa -b 4096 -m PEM
I just tried to test my package (e.g. using MyPackage
in a script) and I got the following error (note my local registry has already been added on this PC, I can see it when I looked in .julia/registries/
)
ERROR: failed to clone from git@github.com:MyUserName/MyPackage.jl.git, error: GitError(Code:EEOF, Class:SSH, ERROR: You're using an RSA key with SHA-1, which is no longer allowed. Please use a newer client or a different key type.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
Should I:
- try to reformat an existing key that is in the ed25519 format into PEM? The
ssh-keygen
manual entry mentions this - Create a new key in the ed25519 format somewhere other than
.ssh/
(to avoid overwriting existing keys) and add that to my github account? Something likessh-keygen -t ed25519 -b 4096 -m PEM