> ## Documentation Index
> Fetch the complete documentation index at: https://guide.cloudsania.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create an SSH Key

> This guide will walk you through the steps on how to create an SSH key for logging into your virtual private server (VPS), 

<Note>
  SSH keys provide a more secure way of logging into your virtual private server (VPS) without using passwords. This is an  particularly useful when configuring  cloud connectors like NameCheap on Cloudsania.
</Note>

## 🎯 How To Create an SSH Key

### 1️⃣  **Navigate** to **the SSH Keys Section**

✅  Log in to **Cloudsania**.

✅  From the left sidebar, click on **Settings**.

✅  Select the **SSH Keys** tab to access the key management section.

### 2️⃣   Enter  a unique 'Key name' for your SSH key

### 3️⃣  **Choose an SSH Key Type**

Cloudsania offers different SSH key types based on security and performance needs:

<AccordionGroup>
  <Accordion title="SSH-ED25519 (Recommended) 🟣" defaultOpen="true" icon="key">
    Provides the strongest security and efficiency.
  </Accordion>

  <Accordion title="SSH-ECDSA 🟠" defaultOpen="true" icon="key">
    Faster than RSA, suitable for environments that require compliance with security standards.
  </Accordion>

  <Accordion title="SSH-RSA 🔵" defaultOpen="true" icon="key">
    An older but widely supported encryption method.
  </Accordion>
</AccordionGroup>

<Tip>
  If you're unsure, select **SSH-ED25519** for optimal security.
</Tip>

### 4️⃣  Click the "Create SSH Key" button to generate the key.

Once created, the new key appears under 'Active SSH Keys\*\*'\*\*.

📌 You can:

✅  **Copy** the key’s fingerprint for later use.

✅  **Download** the key to store it securely.

✅  **Delete** any unused or outdated keys if necessary.

### 5️⃣ Map the Public Key to Your Server

After creating your SSH key in Cloudsania, you need to add the public key to your server so it recognizes and allows access.

**Option 1 (Preferred – Manual method):**

```
cat public-key-file-location | ssh username@host "cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"
```

**Option 2 (Automated – ssh-copy-id):**

```
ssh-copy-id -i ~/.ssh/id_rsa.pub <username>@<server_ip_address>
```

✅ Once done, you can log in securely without using a password.

## 🎯 **Using the SSH Key**

Your newly created SSH key can now be used for setting up cloud connectors like 'Namecheap\*\*'\*\*.
