# Adding new SSH key to it

### Adding new SSH key to your GitHub account:

* Open Your "Command prompt" or "Terminal".
* Type below commands to generate SSH key

```
ssh-keygen
```

* Now a **.ssh** folder is created in your home directory. Go to that directory.

```
cd .ssh
cat id_rsa.pub
```

* copy the SSH key which we get after running the above commands.

<figure><img src="/files/ISumTFaCzsfMLTrklXJi" alt=""><figcaption></figcaption></figure>

* open GitHub and add this SSH key as shown below:
* open **Settings** and go to **SSH and** **GPG keys**

<figure><img src="/files/jKcfJAvU5fb1x1QiveH2" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/fFoIdIuljTEyNXR1PdDq" alt=""><figcaption></figcaption></figure>

* Click on **New SSH key** and paste it. Click on **Add SSH key**.
* If you want check the private key, use

```
cat id_rsa
```


---

# 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://docs.digit.org/platform/guides/operations-guide/gitops/adding-new-ssh-key-to-it.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.
