Setup SSH on macOS
Check if you already have an available SSH key
If the files
id_ed25519.pub are in the
~/.ssh folder, you don’t
need to follow this guide, you already have your SSH key.
Create a new SSH key pair
ssh-keygen -t ed25519
Follow the instructions to generate a new SSH key pair. You will be asked to encrypt your private key with a password. This step is optional but for further security you may want to set one.
By default, both private and public keys will be located in your
Last update: 06 Jan 2022 Suggest edits