-
Notifications
You must be signed in to change notification settings - Fork 0
GitHub: Add SSH Key
Oscar Fabiano edited this page Jul 6, 2021
·
1 revision
1. $ cd ~/.ssh
2. $ ssh-keygen -t ed25519 -C "[email protected]"
a. > Generating public/private ed25519 key pair. b. Enter a file in which to save the key (/home/you/.ssh/id_ed25519): [Press enter] c. Enter passphrase (empty for no passphrase): [Type a passphrase] d. Enter same passphrase again: [Type passphrase again]
3. $ eval "$(ssh-agent -s)"
4. $ ssh-add ~/.ssh/id_ed25519
5. $ cat ~/.ssh/id_ed25519
6. Copy the key from the terminal and add it to your GitHub (Settings-> SSH and GPG keys-> New SSH Key)
https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account