Generate SSH keys
SSH keys can be generated in the Customer Portal or via CLI tools and SSH clients:Generate SSH keys in the customer portal
SSH keys can be created when creating a Virtual Instance or generated separately in the SSH Keys section. After generation, the public key is added to the system and appears in the SSH Keys section alongside any other keys. The private key is downloaded to local storage.Public key names can contain only Latin characters, underscores, spaces, and dots. The length must be between 3 and 63 characters.
- Generate an SSH key when creating a VM
- Generate an SSH key in the SSH Keys section
When creating a Virtual Instance, the SSH key section offers a dropdown to select an existing key and links to add or generate a new key.
To use the generate a SSH Key option:
- Select ssh key — add a key already stored in the Gcore Customer Portal by selecting it from the dropdown list.
- add a new SSH Key — add an existing key generated via CLI tools or an SSH client.
- generate a SSH Key — create a new key pair in the portal.

- Click the generate a SSH Key link.
- In the dialog that opens, enter the key name to identify the key in the system.
- Click Create SSH Key — the browser downloads the private key file to local storage.

Generate SSH keys via CLI tools or SSH clients
- Terminal or Command Prompt
- Windows Subsystem for Linux (WSL)
- PuTTYgen
To generate SSH keys on Linux, macOS, or Windows 10/11 devices:
-
Open Terminal (Linux, macOS) or Command Prompt (
cmd.exeon Windows). - Run the following command to generate a key pair:
-
When prompted for the file path, specify a custom location (for example,
.ssh/) or press Enter to save the keys to the default directory. The default directory is~/.ssh/for Linux/macOS andC:\Users\{username}\.ssh\for Windows. - When prompted for a passphrase, enter a password for additional security or leave the field empty and press Enter to create the key without a password.
- Confirm the passphrase by entering it again, or leave the field empty and press Enter. The key is saved in the default directory or in the custom location specified during creation.
-
The public key is saved in the
.pubfile. Add this public key to the Customer Portal as described in Add a public key.
Add a public SSH key to the customer portal
If the SSH key was not generated via the Gcore Customer Portal, add the public key there:- In the Gcore Customer Portal, go to Cloud > SSH Keys.
- Click Add SSH Key.

- In the SSH key content field, paste the public key.
- Enter a key name and click Add SSH Key.

- The key appears in the SSH keys list and can be selected as an authentication method when creating a new instance.
After a public key is added, it is automatically shared with all users in the same project. To change the key’s visibility, see Stop sharing.
Manage SSH keys in the customer portal
Public SSH keys can be deleted from the Gcore Customer Portal, shared with other users in the same project, or restricted to a single user.Delete SSH keys
Only the user who created an SSH key or added the public key to the Gcore Customer Portal can delete that key. To delete the key:- In the Gcore Customer Portal, go to Cloud > SSH Keys.
- Find the SSH key to delete and click the three-dot icon.
- Click Delete.
- In the confirmation dialog, click Delete SSH key.
Stop sharing SSH keys
After an SSH key is added or generated in the Customer Portal, the public key is automatically shared with all users in the same project. To stop sharing the key and restrict visibility to the current user:- In the Gcore Customer Portal, go to Cloud > SSH Keys.

- Find the SSH key to stop sharing and click the three-dot icon.
- Click Stop sharing.
- In the confirmation dialog, click Stop sharing.

