1 hour ago · Tech · 0 comments

Generate an SSH KeyGenerate an SSH key using the Ed25519 algorithm:ssh-keygen -t ed25519 -C "<your-email-address>"After running the command, you’ll be prompted to choose where to save the key.Using the default file id_ed25519 will overwrite the previous content, and you may run into trouble with SSH authentication for other clients.To avoid that, I save my keys in different files:Enter file in which to save the key (/Users/<your-username>/.ssh/id_ed25519): /Users/<your-username>/.ssh/vps_selfhostingAfter specifying the file in which to save the key, you need to enter a passphrase. Although you can continue without one, I recommend that you add one.Once you add it, the SSH setup is complete.For more information about setting up SSH keys, check out this article from GitHub.Adding SSH Keys to a Hetzner VPSYou now need to add the public key to your Hetzner VPS. You can copy it as follows:cat .ssh/vps_selfhosting.pub | pbcopyReturn to the VPS configuration page and paste the key.Important:…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.