%%
Last Updated:
- [[2021-02-08]]
Related
- [[Cybersecurity]]
%%
## OpenSSL
### Generate a key pair
`ssh-keygen`
You'll be asked to enter a filename and passphrase. The public key will then be saved in `filename.pub`.
The default directory is `/Users/nic/.ssh/id_rsa`.
The key fingerprint and the key's randomart image will be displayed. It's a good idea to copy this information.
### Copy and share the public key
The public key information is in `~/.ssh/id_rsa.pub`. Copy everything in this file and paste it into the service you want to share your key with (ie., [[DigitalOcean]]).