Jonas
Jonas

Reputation: 3283

Clone git repositories using SSH, Yubikey and Rider

I receive this error when trying to clone a github repository using JetBrains Rider 2024.3.4 installed with Snap on Linux Ubuntu 24.04 LTS.

My SSH private key is on my FIDO2 security key (Yubikey 5 NFC Firmware v5.7.1) and i generated SSH keys on my laptop using

ssh-keygen -t ed25519-sk -O resident -O verify-required -C "Yubikey 5 NFC Github"

I have successfully connected via SSH to github using:

ssh -vT [email protected]

But in Rider i get this error when cloning the repository:

Unable to Connect

*Invalid setting: keypair '/home/myUsername/.ssh/id_ed25519_sk_github' is corrupt or has unknown format. Only SSH2 keys in OpenSSH format (DSA, RSA, ECDSA or ED25519) or PuTTY Private Key .ppk keys are supported. Error message: Don't know how to decode key:unknown

These are my Rider settings:

Settings -> Version Control -> Github

Clone git repositories using SSH [X]

Settings -> Tools -> SSH configurations

Host: github.com

Username: git

Authentication type: Key pair

Private key file: /home/myUsername/.ssh/id_ed25519_sk_github

Passphrase: None

Parse config file ~/.ssh/config [X]

I have also tested authentication type "OpenSSH config and authentication agent"

The error seems to be related to the format of the key, anyone have an idea of what might be wrong?

Where can I find logs in Rider installed via Snap?

Upvotes: 0

Views: 71

Answers (0)

Related Questions