Generating SSH keys

Creating and Copying SSH Elliptic Curve Keys

This guide provides step-by-step instructions for creating and copying SSH elliptic curve keys on Windows, macOS, and Linux.

Generating SSH Keys

Run the following command to generate an Ed25519 SSH key pair:

ssh-keygen -t ed25519 -C "[email protected]"

When prompted:

  • Select a save location (default: ~/.ssh/id_ed25519)

  • Enter a passphrase or press Enter to skip

Copy Your Public Key

Mac/Linux:

cat ~/.ssh/id_ed25519.pub | pbcopy

Windows (PowerShell):

Get-Content ~\.ssh\id_ed25519.pub | Set-Clipboard

The public key (id_ed25519.pub) is safe to share and is used for authentication. Keep the private key (id_ed25519) confidential and secure. Do not share it.

Last updated