holzschu / holzschu/a-shell

Cloning a GitHub repo via SSH not possible when using RSA keys

Open
#696 6 comments 3 reactions 0 assignees View on GitHub
Dominant language
Perl
Stars
3.9k
Forks
213
Avg merge
1m
Merged PRs (30d)
1

Description

Using `ssh-keygen -t rsa-sha2-256`, I was able to generate a key pair, which I checked was indeed SHA-2 after creation by running `ssh-keygen -l -f`.

Adding the public key to my Github account lets me SSH into GitHub using `ssh -t git@github.com`, however cloning a repo via SSH (`git clone target-repository` prompts an error message regarding the key type, and the repo isn’t cloned.

```
SSH authentication: Using private key: /var/mobile/Containers/Data/Application//Documents/.ssh/id_rsa

ERROR 23: 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.
```

N.b.: `git clone` works using `ed-25519`, however.

**Edit**: I just noticed that this issue was mentioned in the [guide](https://bianshen00009.gitbook.io/a-guide-to-a-shell/basic-tutorials/configure-lg2-for-version-controlling#ssh-configuration), without a solution however. And in a previous [issue](https://github.com/holzschu/a-shell/issues/587#issue-1630799965). Sorry if this duplicates the issue but at least it’s a summary.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.