Why Use RSA with SSH Keys?
RSA (Rivest-Shamir-Adleman) encryption is one of the most widely supported algorithms for SSH keys. It provides a balance between strong security and compatibility, making it ideal for authenticating with services like GitHub.
Step-by-Step Guide
- Generate an SSH Key To generate an RSA SSH key with your email as a comment, follow these steps:
Open Command Prompt or PowerShell on Windows 10.
Type the following command to create a new SSH key using RSA encryption:
ssh-keygen -o -t rsa -C "youremail@email.com"
When prompted to specify a location to save the key, press Enter to use the default directory (C:\Users\YourUsername.ssh\id_rsa).
Press Enter (no passphrase needed).
- Access the SSH Key Navigate to the .ssh folder located in:
C:\Users\YourUsername.ssh\
Open the id_rsa.pub file with Notepad and copy the public key.
- Add the SSH Key to GitHub Now, you need to add the SSH public key to your GitHub account.
Go to your GitHub profile.
Navigate to Settings > SSH and GPG keys.
- Click New SSH Key.
Top comments (0)