Generating an SSH key
- Open Terminal
- Generate your key pair using your email address
$ ssh-keygen -t ed25519 -C "your.email@example.com" Generating public/private ed25519 key pair
- When prompted to "Enter a file in which to save the key," press Enter to accept the default file location
$ Enter file in which to save the key (~/.ssh/id_ed25519): ~/.ssh/[id_keyfile]
- At the prompt, simply press enter for an empty passphrase
$ Enter passphrase (empty for no passphrase): [press enter] $