- Generate SSH Keys
- Managing Multiple SSH Keys
- Connecting to GitHub with SSH
- Unix: How To Generate ed25519 SSH Key
-
Change Directory
$ cd ~/.ssh
-
Make Property Directory
$ mkdir DIR_NAME
-
Creates a new ssh key
# Use Email as a label # When saving, use the email_strength combo as a name ## RSA ssh-keygen -t rsa -C [email protected] ## alternative strenghts # ssh-keygen -t rsa -b 4096 # ssh-keygen -t dsa # ssh-keygen -t ecdsa -b 521 # ssh-keygen -t ed25519
-
Create in property directory created in earlier
/Users/df-a/.ssh/DIR_NAME/[email protected]
-
Enter Passphrase
- Strongly recommend a very good, secure passphrase
-
Ensure ssh-agent is enabled
eval 'ssh-agent' -s
-
Add Private Key to Mac OSX Keychain
$ ssh-add -K ~/.ssh/DIR_NAME/[email protected]
-
Copy id_rsa.pub to your clipboard
$ pbcopy < ~/.ssh/DIR_NAME/id_rsa.pub
-
Add your SSH key to your External Account or Host