Zum Hauptinhalt springen

SSH Key

Generating

  1. Generate the key
ssh-keygen -t ed25519

Something like this will be returned

Generating public/private ed25519 key pair.

Enter file in which to save the key (/home/user/.ssh/id_ed25519):

Set a custom name for the key or just press enter to use default.

  1. Get the Public SSH Key

Open the .pub part of the just created SSH Key (note the file name you choose...)

cat ~/.ssh/id_ed25519.pub

If you're using windows, go to your user home > .git and get the .pub file

Refs