There was a problem loading the comments.

SSH Key Management

Support Portal  »  Knowledgebase  »  Viewing Article

  Print

The key on your laptop is how you log in.

 

The portal stores the public half. The private half stays on your machine, unless you use Generate SSH Key and download it once. Attach a key when you create the server. See Creating and Managing Virtual Machines. A key without a security group that allows SSH still cannot connect. That is Using Security Groups.

 

Where the keys live

From CloudAccess, stay on the SSH Keys tab. + Add SSH Public Key pastes a key you already have. + Generate SSH Key makes a new pair in the portal.

Access SSH Keys with Add and Generate

 

Add a key you already have

On Linux, macOS, or Windows PowerShell:

ssh-keygen -t ed25519

Accept the default path, set a passphrase. Then in the portal click + Add SSH Public Key. Name it something you will recognize on the create-server form. Paste the public key (the .pub file), not the private file. Click + Add Keypair.

Add a public SSH key modal with name laptop

 

Or generate one here

Click + Generate SSH Key. Name it, then + Generate. The private key downloads immediately. Keep that file. If you lose it, that key cannot open the server, and we cannot recover it.

Generate SSH Key modal with private-key download warning

 

Use it

On the create-server form, under Authentication, choose Use SSH Key and pick this key. Then:

ssh -i ~/.ssh/your_private_key ubuntu@YOUR_IP

Ubuntu is ubuntu. Other images have their own user. See Default Usernames for Cloud Instances.

 

If it will not connect

  • Private key permissions: chmod 600 on the key file.
  • The username for that image. See Default Usernames.
  • The key actually attached to this server.
  • A security group that allows inbound SSH. See Using Security Groups.

Attachments


Share via
Did you find this article useful?  

Related Articles

© Gozunga