Generate Public/Private RSA key pair (ed25519)
?
R
BashSimple way of generating a pair of SSH Keys. Using ED25519 since widely adopted in various applications, such as SSH and TLS, because of its efficiency, security, and speed. Note: Ed25519 is not considered quantum-safe
1# Check the SSH Folder
2~/.ssh
3
4# Generate a pair of keys
5# ssh-keygen -t rsa -b 4096 -C "name@email.com"
6ssh-keygen -t ed25519 -C "name@email.com"
7
8# Private Key stored at: /Users/username/.ssh/id_rsa
9# Public Key stored at: /Users/username/.ssh/id_rsa.pub
10
11# Start SSH Agent
12eval "$(ssh-agent -s)"
13
14# Add keys to the SSH Agent
15ssh-add -K ~/.ssh/id_rsa
16
17# Copies the contents of the id_rsa.pub file to your clipboard
18pbcopy < ~/.ssh/id_rsa.pubCreated on 11/9/2017