NEW 📢 Save up to 30% on your first month, limited time offer!

How to create API keys and add SSH keys

Account & securityUpdated Oct 5, 20264 min read

Both kinds of key live on one page: Account, then API and SSH keys.

The Account menu with API and SSH keys highlighted

API keys

An API key lets a script or tool use the panel on your behalf, for example to start a server from a bot or to read its status. Treat it like a password: anyone who has it can do what it allows.

API keys stop working 30 days after you create them. Create a new key and update your script before then. You can have up to 25 keys.

Create a key

  1. Open the panel, click Account, then API and SSH keys.
  2. Under API keys, type a Description of at least 4 characters so you remember what the key is for, such as "Discord restart bot".
  3. In Allowed IPs, list the IP addresses that may use the key, one per line. Leave it blank to allow any address. A restricted key is safer, so use it whenever you know where the script runs.
  4. Click Create.
The API keys form with a description, the allowed IPs box and the Create button
  1. The window Your API key shows the key. It is shown once and cannot be retrieved again. Copy it into your password manager or your script's secret store before you close the window.

Remove a key

Find the key in the list below the form and delete it. Anything using it stops working at once. Delete keys you no longer use, and any key you think has leaked.

SSH keys

An SSH key lets you connect over SFTP without typing your password.

Add a key

  1. Create a key pair on your computer if you do not have one. Most systems can do this with the ssh-keygen command. Never share the private key file.
  2. Open the API and SSH keys page.
  3. Under SSH keys, type an SSH Key Name, such as "Home PC".
  4. Paste your public key into Public Key. It is one line and starts with the key type, for example ssh-ed25519. DSA keys are not accepted, and RSA keys must be at least 2048 bits.
  5. Click Save.
The SSH keys form with a name, the public key box and the Save button

Use it

In FileZilla or WinSCP, choose your private key file instead of a password when you connect. See How to connect to your server files with SFTP.

Good to know

CREATE YOUR GAME SERVER
READY TO GET STARTED?

Save up to 30% on your new game server.
Premium performance, instant activation, and unbeatable reliability all at a better price.

OUR LATEST BLOGS