> For the complete documentation index, see [llms.txt](https://utm-1.gitbook.io/utm-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://utm-1.gitbook.io/utm-docs/dokumentaciya/utm-it/programmnoe-obespechenie/vneshnie-servisy/github/nastroika-podklyucheniya-k-github-po-ssh/dobavlenie-klyucha-ssh-v-uchetnuyu-zapis-github.md).

# Добавление ключа SSH в учетную запись GitHub

{% embed url="<https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account>" %}

### [Добавление нового ключа SSH к вашей учетной записи](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account?tool=webui#adding-a-new-ssh-key-to-your-account) <a href="#adding-a-new-ssh-key-to-your-account" id="adding-a-new-ssh-key-to-your-account"></a>

Вы можете добавить SSH-ключ и использовать его для аутентификации, подписи коммита или для обоих вариантов. Если вы хотите использовать один и тот же SSH-ключ и для аутентификации, и для подписи, вам необходимо загрузить его дважды.

После добавления нового ключа аутентификации SSH в вашу учётную запись на GitHub.com вы можете перенастроить любые локальные репозитории для использования SSH. Подробнее см. в разделе [Управление удалёнными репозиториями](https://docs.github.com/en/get-started/git-basics/managing-remote-repositories#switching-remote-urls-from-https-to-ssh) .

1. Скопируйте открытый ключ SSH в буфер обмена.

   Если имя вашего файла открытого ключа SSH отличается от имени в примере кода, измените его в соответствии с текущими настройками. При копировании ключа не добавляйте символы переноса строк и пробелы.

   ```shell
   C:\Users\<пользователь>\.ssh\id_ed25519.pub
   ```

   Этот файл необходимо открыть в текстовом редакторе и скопировать всё содержимое в буфер обмена.
2. В правом верхнем углу любой страницы GitHub нажмите на изображение своего профиля, затем нажмите **«Settings»** .
3. В разделе «Access» боковой панели нажмите **SSH и GPG keys**.
4. Нажмите **New SSH key** или **Add SSH key**.
5. В поле «Title» добавьте описательное название для нового ключа. Например, если вы используете личный ноутбук, можно назвать этот ключ «Персональный ноутбук».
6. Выберите тип ключа: аутентификация или подпись. Подробнее о подписи коммита см. [в разделе «О проверке подписи коммита»](https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification) .
7. В поле «Ключ» вставьте свой открытый ключ.
8. Нажмите **Add SSH key**.
9. При необходимости подтвердите доступ к своей учётной записи на GitHub. Подробнее см. в разделе [Режим Sudo](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/sudo-mode) .


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://utm-1.gitbook.io/utm-docs/dokumentaciya/utm-it/programmnoe-obespechenie/vneshnie-servisy/github/nastroika-podklyucheniya-k-github-po-ssh/dobavlenie-klyucha-ssh-v-uchetnuyu-zapis-github.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.
