You Asked: How Do I Add a Public Key to a Linux Server?
Contents

How do I add a public key to my server?

Setting up public key authentication

  1. Generate an SSH Key. With OpenSSH, an SSH key is created using ssh-keygen. …
  2. Copy the key to a server. …
  3. Test the new key. …
  4. Troubleshooting. …
  5. Use a passphrase when possible. …
  6. Add a command restriction when possible. …
  7. Managing SSH keys. …
  8. Installation using Homebrew.

How manually add public key Linux?

Manually Copy Your Public Key

  1. Begin by copying the contents of your public SSH key on your local computer. …
  2. Once you have copied that text, connect to your server via SSH with the user you would like to add your key to: ssh [email protected]
Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest