How do I generate an SSH key pair for use with Cloudflare-protected servers?

Question

Grade: Education Subject: Support
How do I generate an SSH key pair for use with Cloudflare-protected servers?
Asked by:
76 Viewed 76 Answers

Answer (76)

Best Answer
(264)
Use the `ssh-keygen` command in your terminal. For example, `ssh-keygen -t rsa -b 4096 -C "your_email@example.com"`. Choose a strong passphrase to protect your private key. This will create both a private key (e.g., `id_rsa`) and a public key (e.g., `id_rsa.pub`).