> 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/da/knowledge-base/how-to-articles/configure-git-commit-signing-with-remote-desktop-manager.md).

# Konfigurer signering af Git-commits med Remote Desktop Manager

Konfigurer signering af Git-commits i Remote Desktop Manager ved hjælp af SSH-nøgleagenten og en SSH-nøgle, der er tilføjet hos Deres Git-udbyder.

### Forudsætninger

* Git skal være installeret.
* (Valgfrit) [OpenSSH for Windows](https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh-overview).

### (Valgfrit) Konfiguration af OpenSSH for Windows

Det anbefales kraftigt at bruge OpenSSH for Windows, når De bruger en signeringsnøgle med en adgangssætning, da De vil indlæse den med RDM-nøgleagenten. Ellers bliver De bedt om adgangssætningen, hver gang De laver et commit, hvilket er meget upraktisk.

1. For at installere [OpenSSH for Windows](https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh-overview) på Windows 11 skal De gå til ***System*** – ***Valgfrie funktioner***.
2. Kontrollér, at OpenSSH-klienten er installeret. Ellers kan den findes og installeres med den blå knap ***Vis funktioner***.
3. Åbn ***Tjenester*** i Windows.
4. Sæt starttypen for OpenSSH Authentication Agent til ***Automatisk***, og start tjenesten.
5. Åbn SSH-nøgleagenten ved at klikke på ***Værktøjer*** – ***SSH-nøgleagent*** på båndet i Remote Desktop Manager.
6. Sæt tilstanden til OpenSSH, og start agenten.

### Generer SSH-nøglen

[Generer SSH-nøglen](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent) med ssh-keygen.

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

### Konfiguration af nøglen til kodesignering

1. Åbn [SSH-nøglestyring (lokal)](/rdm/da/ribbon-menu-bar/tools/ssh-key-manager-local.md).
2. Vælg nøglen, og klik på ***Brug til signering af Git-commits***.
3. Vinduet til signering af Git-commits åbnes.
4. Markér både ***Signer commits som standard*** og ***Konfigurer Git til at bruge OpenSSH for Windows***.
5. Nøglen skal tilføjes hos Git-udbyderen. Det gør De ved at åbne GitHub.
6. Gå til ***Indstillinger*** – ***SSH- og GPG-nøgler***.
7. Klik på ***Ny SSH-nøgle***.
8. Signeringsnøgle skal vælges som nøgletype.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>For at få mere at vide om, hvordan De bruger SSH-nøgler på GitHub, GitLab og Bitbucket, skal De klikke på linkene nedenfor:- Adding a new SSH key to your GitHub account - GitHub Docs</p></div>

* Brug SSH-nøgler til at kommunikere med GitLab | GitLab
* Konfigurer personlige SSH-nøgler på Windows | Bitbucket Cloud | Atlassian Support

9. Lav et commit. Hvis der kræves en adgangssætning for at få adgang til SSH-nøglen, bliver De bedt om den på det tidspunkt.
10. For at kontrollere, at committet er signeret korrekt, skal De se siden Commits på GitHub. Commits, der er signeret med en kendt nøgle, viser mærket Verified.

### Indlæs nøglen i SSH-nøgleagenten

For at undgå at skulle skrive adgangssætningen ved hvert commit kan nøglen indlæses i nøglestyringen.

1. I [***SSH-nøglestyring (lokal)***](/rdm/da/ribbon-menu-bar/tools/ssh-key-manager-local.md) skal De vælge nøglen og bruge valgmuligheden ***Indlæs i SSH-nøgleagent***. Der er en ekstra valgmulighed til automatisk at indlæse nøglen, når nøgleagenten starter.
2. Hvis nøglen har en adgangssætning, vises en prompt, hvor De skal angive den, når nøglen indlæses.
3. Konfigurer miljøet, så De undgår at angive adgangssætningen.
4. Det gør De ved at importere nøglen i en boks med handlingen ***Gem som post***.
5. På posten skal De angive adgangssætningen og markere ***Gem adgangssætning***.
6. Markér ***Indlæs automatisk i SSH-nøgleagent*** i SSH-nøgleagenten.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
