SkyportDOCS
·
FREN Open console Create an account

Key pairs

Updated November 23, 2026

What it is for

An SSH key pair replaces the password for connecting to an instance. It has two parts: the public key, which Skyport puts on the instance when it is created, and the private key, a file only you keep on your computer. The instance only lets in the computer that has the private key.

This guide goes from the key to the connection: get a key (two ways), store it on your computer, give it to an instance, then connect.

1. Get a key pair#

In the menu, choose Compute › Key pairs, then Create key pair. The window opens on importing a key you already have:

Create key pair: import yours, or have one generated.Create key pair: import yours, or have one generated.
Create key pair: import yours, or have one generated.
  1. Name: a name to find it again, for example my-laptop. It starts with a letter; letters, digits, - and _.
  2. Public key: paste your public key here, the text starting with ssh-ed25519.
  3. Upload your key: or pick the .pub file on your computer.
  4. No key yet? “let Skyport generate one”.

First way: import your own key (recommended)#

  1. On your computer, create a key if you have none:
    ssh-keygen -t ed25519
    Press Enter at each question. The private key is saved in ~/.ssh/id_ed25519, the public key in ~/.ssh/id_ed25519.pub.
  2. Show the public key and copy it:
    cat ~/.ssh/id_ed25519.pub
  3. In the window, give a Name (1), paste the key into Public key (2), then Create.

The private key never left your computer: the safest way. It is already in the right place, so step 2 below is not needed.

Second way: let Skyport generate the key#

  1. In the window, choose “let Skyport generate one” (4).
Generate a key pair.Generate a key pair.
Generate a key pair.
  1. The key pair's Name.
  2. Create: Skyport generates the pair. The window shows “Download the private key now”: choose Download (you get a file, for example my-laptop.pem), then I saved the private key.

The private key is shown only once and nobody keeps a copy, not even SkyEngPro. If you lose it, create a new key pair.

2. Store the private key on your computer#

Only if Skyport generated the key. Put the downloaded file in the .ssh folder of your home folder, and protect it:

SystemCommands
macOS, Linuxmkdir -p ~/.ssh
mv ~/Downloads/my-laptop.pem ~/.ssh/
chmod 600 ~/.ssh/my-laptop.pem
Windows (PowerShell)mkdir $HOME\.ssh
move $HOME\Downloads\my-laptop.pem $HOME\.ssh\

chmod 600 makes the file readable by you only. Without it, SSH refuses to use it.

3. Give the key to an instance#

When creating the instance, in the SSH key step, choose the key pair from the list. See Create an instance.

The key is placed on the instance when it is created. An existing instance keeps the key it got: adding a new one in Skyport does not change it.

4. Connect with the key#

Before you start

  1. Open a terminal (PowerShell on Windows).
  2. With a key Skyport generated:
    ssh -i ~/.ssh/my-laptop.pem ubuntu@203.0.113.25
    With your own imported key:
    ssh ubuntu@203.0.113.25
    Replace the address with the instance's floating IP, and ubuntu with the image's user.

What you should see

The instance's prompt shows. See Connect to an instance if something goes wrong.

Your key pairs, with their fingerprint.Your key pairs, with their fingerprint.
Your key pairs, with their fingerprint.