What you’ll need
- A Hivenet account with Compute credits ready
- macOS 11 (Big Sur) or newer
- Terminal (built in)
- OpenSSH (installed by default)
Step 1 – Create your SSH key pair
- Open Terminal.
-
Run:
-
Press Enter to accept the default location (
/Users/<you>/.ssh/id_ed25519
). - When prompted, enter a passphrase (optional but recommended).
Already use a password manager? Many, including 1Password and Bitwarden, can create and store SSH keys in one click. If that’s your jam, generate the key there and copy the public part straight from the manager.
File | What it is |
---|---|
id_ed25519 | Your private key — keep it secret |
id_ed25519.pub | Your public key — you’ll upload this to Hivenet |
Step 2 – Find your key files
Open the.ssh
folder in Finder:
Step 3 – Add your public key to Hivenet
- Double-click id_ed25519.pub to open it in TextEdit.
- Copy the entire line (it starts with
ssh-ed25519
). - In Compute with Hivenet, paste that line into the SSH key field when you create an instance.
Paste only the
.pub
file contents. Never share the private key.Step 4 – (Optional) add a quick SSH config
In ~/.ssh, create or edit a file named config (no extension) and paste:Troubleshooting
Message | Likely cause & fix |
---|---|
Permission denied (publickey) | The public key isn’t on the instance, or you’re using the wrong private key. Re-add the key or point SSH at the right file. |
Host key verification failed | You re-created the VM and the host key changed. Remove the old entry from ~/.ssh/known_hosts and try again. |
ssh: command not found | OpenSSH is missing (rare on macOS). Install Xcode Command Line Tools with xcode-select --install . |