Home > OS >  How to fix error when using ssh github keys on ubuntu?
How to fix error when using ssh github keys on ubuntu?

Time:10-08

The problem is I have ssh keys already working on my local disk but, when I am going to use Ubuntu, it doesn't let me use the keys like shown in this images:

This is my local disk ssh keys:

local disk ssh keys

This is the carpet ssh but on Ubuntu folder:

carpet ssh but on Ubuntu folder

When I am going to request a git clone with ssh it doesn't work:

Ubuntu failed SSH

CodePudding user response:

The best practice is to:

  • regenerate a new set of SSH key pair on your Ubuntu session, instead of reusing existing keys: that way, you can better identify which account is using/accessing your GitHub data.
  • register the new SSH public key on your GitHub account

In your Ubuntu session:

ssh-keygen -t ed25519 -P "" 
  • Related