How to Make an SSH Key?

Open a terminal

Run `ssh-keygen -t ed25519 -C “your_email@example.com”`

Press Enter to accept the default file location

Enter a passphrase if desired

Confirm the passphrase

Start the SSH agent with `eval “$(ssh-agent -s)”`

Add the key to the SSH agent with `ssh-add ~/.ssh/id_ed25519`

Copy the public key with `cat ~/.ssh/id_ed25519.pub`

Paste the public key where needed

Suggested for You

Trending Today