> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/rdm/it/knowledge-base/how-to-articles/configure-git-commit-signing-with-remote-desktop-manager.md).

# Configurare la firma dei commit Git con Remote Desktop Manager

### Prerequisiti

* Git deve essere installato.
* (Facoltativo) [OpenSSH for Windows](https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh-overview).

### (Facoltativo) Configurare OpenSSH for Windows

L'uso di OpenSSH for Windows è vivamente consigliato quando si utilizza una chiave di firma con una passphrase, poiché vorremo caricarla con il key agent di RDM. Altrimenti ci verrebbe chiesta la passphrase a ogni commit, il che è molto scomodo.

1. Per installare [OpenSSH for Windows](https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh-overview) su Windows 11, vada in ***Sistema*** – ***Funzionalità facoltative***.
2. Verifichi che OpenSSH Client sia installato. In caso contrario, può essere trovato e installato con il pulsante blu ***Visualizza funzionalità***.
3. Apra i ***Servizi*** in Windows.
4. Imposti il tipo di avvio di OpenSSH Authentication Agent su ***Automatico*** e avvii il servizio.

   <figure><img src="https://cdnweb.devolutions.net/docs/RDMW6085_2024_3.png" alt=""><figcaption></figcaption></figure>
5. Apra l'SSH key agent facendo clic su ***Strumenti*** – ***SSH Key Agent*** nella barra multifunzione di Remote Desktop Manager.
6. Imposti la modalità su OpenSSH e avvii l'agent.

### Generare la chiave SSH

[Generi la chiave SSH](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent) utilizzando ssh-keygen.

```
ssh-keygen -t ed25519 -C "your_email@example.com"
```

### Configurare la chiave per la firma del codice

1. Apra il [SSH Key Manager (local)](/rdm/it/ribbon-menu-bar/tools/ssh-key-manager-local.md).
2. Selezioni la chiave e faccia clic su ***Use for Git commit signing***.
3. Si apre la finestra della firma dei commit Git.
4. Selezioni sia ***Sign commits by default*** sia ***Configure Git to use OpenSSH for Windows***.

   ![](https://cdnweb.devolutions.net/docs/RDMW6086_2024_3.png)
5. La chiave deve essere aggiunta nel provider Git. Per farlo, apra Github.
6. Vada in ***Settings*** – ***SSH and GPG keys***.
7. Faccia clic su ***New SSH key***.

   ![](https://cdnweb.devolutions.net/docs/RDMW6088_2024_3.png)
8. Signing key deve essere selezionato come tipo di chiave.

   ![](https://cdnweb.devolutions.net/docs/RDMW6087_2024_3.png)

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Per sapere come utilizzare le chiavi SSH su Github, Gitlab e Bitbucket, faccia clic sui link qui sotto:- Adding a new SSH key to your GitHub account - GitHub Docs</p></div>

* Use SSH keys to communicate with GitLab | GitLab
* Set up personal SSH keys on Windows | Bitbucket Cloud | Atlassian Support

9. Effettui un commit. Se è richiesta una passphrase per accedere alla chiave SSH, verrà richiesta in quel momento.
10. Per verificare che il nostro commit sia firmato correttamente, consulti la pagina Commits su GitHub. I commit firmati con una chiave conosciuta mostreranno l'etichetta Verified.

### Caricare la chiave nell'SSH key agent

Per evitare di dover digitare la passphrase a ogni commit, la chiave può essere caricata nel key manager.

1. Nel [***SSH Key Manager (local)***](/rdm/it/ribbon-menu-bar/tools/ssh-key-manager-local.md), selezioni la chiave e utilizzi l'opzione ***Load in SSH key agent***. È disponibile un'ulteriore opzione per caricare automaticamente la chiave all'avvio del key agent.
2. Se la chiave ha una passphrase, verrà visualizzata una richiesta per inserirla al momento del caricamento della chiave.
3. Configuri l'ambiente per evitare di inserire la passphrase.
4. Per farlo, importi la chiave in una cassaforte utilizzando l'azione ***Save as entry***.
5. Sulla voce, imposti la passphrase e selezioni ***Save passphrase***.
6. Selezioni ***Automatically load to SSH key agent*** nell'SSH key agent.


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.devolutions.net/rdm/it/knowledge-base/how-to-articles/configure-git-commit-signing-with-remote-desktop-manager.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
