Skip to Content
Get StartedKeypairs

Keypairs

SSH keypairs are used to securely access compute instances.

A keypair has two parts:

  • Public key — uploaded to redu.cloud
  • Private key — kept on your machine

Never upload or share your private key.


1. Generate an SSH key

If you already have an SSH keypair, you can reuse it. Otherwise, generate a new one.

Linux / macOS

ssh-keygen -t ed25519 -C "you@example.com"

Windows PowerShell

ssh-keygen -t ed25519 -C "you@example.com"

Your public key file usually ends with .pub.

Example:

~/.ssh/id_ed25519.pub

2. Create a keypair

Go to:

Menu → Compute → Virtual Machines → SSH Keypairs

Then:

  1. Click Create Keypair
  2. Enter a name, for example my-keypair-01
  3. Paste your public key
  4. Submit the form
Create keypair

Public keys usually start with:

ssh-ed25519

or:

ssh-rsa

3. Use a keypair when creating an instance

When creating an instance:

  1. Enable SSH access
  2. Select your keypair
  3. Launch the instance
Select keypair during instance creation

After the instance is ready, use the SSH command shown in the UI.

Example:

ssh -p <port> ubuntu@<host>

You can copy the command from:

Compute → Virtual Machines → Instances → Actions → Copy SSH

Copy SSH command

If your private key has a passphrase, SSH will ask for it.


4. Delete a keypair

Only delete keypairs that are no longer needed.

Go to:

Menu → Compute → Virtual Machines → SSH Keypairs

Then:

  1. Open the actions menu for the keypair
  2. Choose Delete Keypair
  3. Confirm the deletion
Delete keypair

Troubleshooting

Permission denied publickey

Check that:

  • You selected the correct keypair when creating the instance
  • You are using the correct username for the image, such as ubuntu
  • Your security group allows SSH on port 22
  • Your private key permissions are correct
chmod 600 ~/.ssh/id_ed25519

Invalid public key format

The public key must be a single line starting with ssh-ed25519 or ssh-rsa.

Lost private key

Private keys cannot be recovered from redu.cloud.

Generate a new keypair and use it for new instances.


Last updated on