Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kanelv/4f67b775753b45a6fbbd079cedd4cd39 to your computer and use it in GitHub Desktop.
Save kanelv/4f67b775753b45a6fbbd079cedd4cd39 to your computer and use it in GitHub Desktop.
### STEP 1. Generate a new SSH key by the command below
```bash
ssh-keygen -t ed25519 -C "your_email@example.com"
```
### STEP 2. Copy the SSH public key to your clipboard by the command below
```bash
# macOS
pbcopy < ~/.ssh/id_ed25519.pub
```
## Refs
https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account?platform=mac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment