Prerequisites
- An OnetSolutions account with a project
- An SSH key pair on your machine, or the commands below to create one
Generating a Key Pair
If you do not already have one, generate it locally. Ed25519 is the current recommendation — shorter than RSA and faster, with no loss of security.
Display the public half to copy it:
ssh-ed25519 and ending with the comment you passed. Copy the whole line.
Adding a Key to the Console
1
Open SSH Keys
In the console, go to Compute and open the SSH Keys tab.
2
Start adding a key
Click Add SSH Key.
3
Name the key
Fill in Key Name with something identifying the machine it belongs to, such as
my-laptop. This name is only a label for you.4
Paste the public key
Paste the full contents of your
.pub file into Public Key.5
Save
Confirm. The key appears in the list with its fingerprint, type, and the date it was added.
SSH keys belong to a project. A key added to one project is not available in another — add it again where you need it.
Using a Key on an Instance
A registered key can be selected when you create an instance or when you reinstall one. The key is installed for the default administrative account, and you can connect immediately:Removing a Key
Deleting a key from the console removes it from the list used for new instances and reinstalls. It does not remove it from servers where it was already installed — for that, edit~/.ssh/authorized_keys on each instance concerned.
Troubleshooting
Permission denied (publickey)
Permission denied (publickey)
The server has no matching public key. Confirm the key was selected when the instance was created, and that you are connecting as the right user. Add
-v to the ssh command to see which keys your client actually offered.The console rejects the key
The console rejects the key
The pasted content is not a valid public key. It must be one line starting with
ssh-ed25519, ssh-rsa, or a similar type. Line breaks introduced by a text editor are a common cause.Bad permissions on the private key
Bad permissions on the private key
SSH refuses a private key readable by others. Fix it with
chmod 600 ~/.ssh/id_ed25519 and chmod 700 ~/.ssh.You are asked for the passphrase on every connection
You are asked for the passphrase on every connection
That is the agent’s job. Run
ssh-add ~/.ssh/id_ed25519 once per session; on macOS, ssh-add --apple-use-keychain makes it persist.You lost the private key
You lost the private key
It cannot be recovered — that is the point of it. Generate a new pair, add the new public key, and install it through a KVM console session or a reinstall.

