> 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/server/it/knowledge-base/how-to-articles/set-up-centralized-ssh-key-rotation.md).

# Configurare la rotazione centralizzata delle chiavi SSH

La rotazione manuale delle chiavi SSH in ambienti ampi e complessi può diventare ingestibile e aumentare i rischi per la sicurezza. Per questo motivo consigliamo di utilizzare le funzionalità PAM di Devolutions Server per centralizzare la gestione delle chiavi SSH.

Questo metodo è piuttosto semplice: le chiavi SSH importate da un [provider di chiavi SSH](https://docs.devolutions.net/pam/it/pam-with-devolutions-server/providers/managed-providers/ssh-key-provider) in Devolutions Server vengono collegate alle voci SSH in Remote Desktop Manager, consentendo una gestione delle chiavi semplificata e centralizzata.

### Rotazione sicura delle chiavi SSH con StrictModes

La rotazione delle chiavi SSH di Devolutions PAM richiede l'accesso ai file `authorized_keys` nei sistemi gestiti. È quindi consigliabile utilizzare la configurazione `StrictModes` nelle impostazioni del server SSH.

Per la compatibilità con `StrictModes`, utilizzi i seguenti comandi sui filesystem che supportano le Access Control Lists (ACL):

```console
setfacl -m u:<PAM_USER>:--x /home/<ACCOUNT>
setfacl -m u:<PAM_USER>:--x /home/<ACCOUNT>/.ssh
setfacl -m u:<PAM_USER>:rw /home/<ACCOUNT>/.ssh/authorized_keys
```

Sostituisca `<PAM_USER>` con il nome utente dell'account che Devolutions PAM utilizza per gestire le chiavi SSH e sostituisca `ACCOUNT` con tutti gli account da gestire con le chiavi SSH.

#### In Devolutions Server

1. In Devolutions Server, vada su ***Amministrazione*** – ***Accesso privilegiato*** – ***Provider*** e clicchi sull'icona ***Aggiungi*** (***+***). Selezioni il tipo di provider gestito ***Chiave SSH***.

   ![](https://cdnweb.devolutions.net/docs/DVLS4198_2025_1.png)
2. Inserisca le informazioni richieste. Si assicuri di selezionare sia ***Aggiungi cassaforte PAM*** sia ***Aggiungi una nuova configurazione di rilevamento account.***

   ![](https://cdnweb.devolutions.net/docs/DVLS4199_2025_1.png)
3. Clicchi su ***Test connessione*** per assicurarsi che tutto sia in ordine, quindi ***Salvi*** il provider.
4. Poi, nella finestra ***Configurazione di rilevamento account***, inserisca un nome e clicchi su ***Ok***.
5. Vada su ***Amministrazione*** – ***Accesso privilegiato*** – ***Configurazioni di rilevamento account***. Clicchi sul pulsante ***Visualizza risultato*** (icona a forma di occhio) della configurazione di rilevamento account appena creata.

   ![](https://cdnweb.devolutions.net/docs/DVLS4200_2025_1.png)
6. Selezioni la chiave SSH che desidera utilizzare e clicchi sul pulsante ***Importa i computer selezionati***.

   ![](https://cdnweb.devolutions.net/docs/DVLS4201_2025_1.png)
7. Imposti una cartella di destinazione per la chiave importata e clicchi su ***Ok***.

#### In Remote Desktop Manager

1. Clicchi su ***Aggiungi una nuova voce*** e crei una [voce sessione terminale SSH](https://docs.devolutions.net/rdm/it/knowledge-base/knowledge-base-articles/entry-settings/ssh-terminal). Inserisca host e credenziali.
2. Nella sotto-scheda ***Generale*** della scheda ***Chiave SSH***, imposti il ***Tipo di voce*** su ***Account privilegiato***. Clicchi sull'icona con i puntini di sospensione (***…***) a destra del campo ***Account*** e trovi il suo account PAM.

   ![](https://cdnweb.devolutions.net/docs/DVLS4203_2025_1.png)
3. Clicchi su ***Ok*** e poi su ***Aggiungi*** per finalizzare la creazione della voce.

Per assicurarsi che il metodo abbia funzionato, apra la voce terminale SSH in Remote Desktop Manager e inserisca `cat ~/.ssh/authorized_keys` nella console. La chiave restituita dovrebbe corrispondere a quella nella cartella PAM creata durante il passaggio #7 in Devolutions Server.

#### Vedere anche

* [Devolutions Academy – Centralize SSH key rotation with Devolutions PAM](https://academy.devolutions.net/student/activity/3039494-centralize-ssh-key-rotation-with-devolutions-pam)


---

# 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/server/it/knowledge-base/how-to-articles/set-up-centralized-ssh-key-rotation.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.
