-
Change Directory
$ cd ~/.ssh
-
Make Property Directory
$ mkdir DIR_NAME
-
Creates a new ssh key
# Use Email as a label ssh-keygen -t rsa -C [email protected]
-
Create in property directory created in earlier
/Users/andesign/.ssh/DIR_NAME/id_rsa
-
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/id_rsa
-
Copy id_rsa.pub to your clipboard
$ pbcopy < ~/.ssh/id_rsa.pub
-
Add your SSH key to your External Account or Host
Last active
March 6, 2023 10:09
-
-
Save anavdesign/391a0b3dbe4492d2fc2267f942a530e6 to your computer and use it in GitHub Desktop.
SSH: Generate SSH Keys
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment