SSH keys
Create an SSH key pair, save the public key to your account and use it for new cloud and hybrid pool servers.
SSH keys are safer than passwords for signing in to servers. You keep the private key on your computer and put the public key on the server.
Create a key pair
ssh-keygen -t ed25519 -C "[email protected]"Press Enter to accept the default file location, and set a passphrase for extra protection. Then print the public key:
cat ~/.ssh/id_ed25519.pubSave it to your account
- Open Profile > SSH keys.
- Give the key a name and paste the public key. It must start with
ssh-(for examplessh-ed25519orssh-rsa) orecdsa-. - Save. Key names must be unique.
Use it
- New cloud server: choose Access with SSH Key on the order page and pick your saved key.
- New server in a hybrid pool: choose SSH key access when you create it.
- Existing server: add the public key to
~/.ssh/authorized_keyson the server yourself.
Saved keys are used only when a server is created or reinstalled. Deleting a key from your profile doesn't remove it from existing servers.
Container hosting uses its own SSH credentials; see SSH, SFTP and terminal.
Warning
Never share your private key or paste it into a website or a support ticket. The only place in Hosted Cloud where you may paste a private key is the web SSH sign-in form, which uses it once and never stores it.
Related articles