# Creating an SSH Key

Follow these instructions to create or add SSH keys on Linux, MacOS & Windows.

## Create a new key pair, if needed

To create an SSH Key, open a terminal and run the following command:

```
ssh-keygen
```

You will be prompted to save and name the key.

```
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/USER/.ssh/id_rsa):
```

Next, you will be asked to create and confirm a passphrase for the key (highly recommended):

```
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
```

&#x20;This will generate two files, by default called `id_rsa` and `id_rsa.pub`. Next, add this public key.

## Add the public key

Copy and paste the contents of the **.pub** file, typically id\_rsa.pub, into the **SSH Public Key** field.

```
cat ~/.ssh/id_rsa.pub
```

{% hint style="info" %}
You don't need to use this command - you can simply right-click the id\_rsa.pub file and open it with your favorite IDE and copy the contents from there into the **SSH Public Key** field.
{% endhint %}

Your public (.pub) SSH Key should look something like this:

![](/files/-Mhp2to2HqAm3uvKNvza)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://degore-docs.unitedweco.de/sponsorships/linode-bot-hosting/creating-an-ssh-key.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
