> 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

Configuri la firma dei commit Git in Remote Desktop Manager utilizzando l'SSH Key Agent e una chiave SSH aggiunta al suo provider Git.

### Prerequisiti

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

### (Facoltativo) Configurazione di OpenSSH for Windows

L'uso di OpenSSH for Windows è altamente consigliato quando si utilizza una chiave di firma con una passphrase, poiché vorremo caricarla con il key agent di RDM. In caso contrario, ci verrebbe richiesta la passphrase a ogni commit, cosa molto scomoda.

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à opzionali***.
2. Verifichi che OpenSSH Client sia installato. Altrimenti 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.
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"
```

### Configurazione della chiave per la firma del codice

1. Apra [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***.
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***.
8. Come tipo di chiave deve essere selezionato Signing key.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Per scoprire come utilizzare le chiavi SSH su Github, Gitlab e Bitbucket, faccia clic sui link seguenti:- 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. Esegua un commit. Se è necessaria 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. In [***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. Nella 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.
