Monday, December 16, 2024Generate a new SSH key
Keven Client A. Cataluña @LinkedIn
Introduction

This guide explains how to generate a new SSH key using the ed25519 algorithm for secure GitHub authentication. The ed25519 algorithm is recommended for its enhanced security and better performance compared to RSA.

Steps1. Run the following command with GitHub email address
    ssh-keygen -t ed25519 -C "your_email@example.com"
  
2. Enter the file location and secure passphrase
    Generating public/private ed25519 key pair.
Enter file in which to save the key (/home/development/.ssh/id_ed25519): .ssh/github_development
Enter passphrase (empty for no passphrase): ••••••••
Enter same passphrase again: ••••••••
Your identification has been saved in .ssh/github_development
Your public key has been saved in .ssh/github_development.pub
  
3. Run the following command to display the content of the public key
    cat .ssh/github_development.pub
  
      ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBJZWx8OjEnNSq7A4k9KSJDhld/Wyqpo47lN/PoG2H9m your_email@example.com