How do I add my SSH public key to a server protected by Cloudflare?

Question

Grade: Education Subject: Support
How do I add my SSH public key to a server protected by Cloudflare?
Asked by:
67 Viewed 67 Answers

Answer (67)

Best Answer
(286)
The most common way is to append the contents of your public key file (e.g., `id_rsa.pub`) to the `~/.ssh/authorized_keys` file on the server. You can do this with `ssh-copy-id user@server_ip` or manually by copying the public key content and pasting it into the `authorized_keys` file.