> 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/connect-with-su-user-in-ssh-sessions.md).

# Connettersi con su-user nelle sessioni SSH

Il comando Unix ***su***, derivato da ***substitute user***, consente a un utente di eseguire comandi con i privilegi di un altro account utente.

### Connettersi con un utente su nelle sessioni SSH

1. In Remote Desktop Manager, apra le ***Proprietà*** della sua voce SSH.
2. Vada su ***Impostazioni di sicurezza*** e selezioni la casella ***Consenti password nella variabile***.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Se l'opzione è disattivata, deve attivare <em><strong>Consenti variabili password per tutte le voci</strong></em> e <em><strong>Consenti variabile password nelle macro</strong></em> in <em><strong>Amministrazione</strong></em> – <em><strong>Impostazioni di sistema</strong></em> – <em><strong>Impostazioni password</strong></em>. Noti inoltre che, se utilizza una delle modalità di credenziali <em><strong>Collegato (cassaforte)</strong></em> o <em><strong>Collegato (cassaforte esterna)</strong></em> per la sua voce, dovrà selezionare la casella <em><strong>Consenti password nella variabile</strong></em> anche nella voce della cassaforte collegata.</p></div>
3. Poi, vada su ***Generale*** – ***Post login***, e clicchi su ***Nuovo*** (pulsante a forma di croce).

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

3. Inserisca `sudo su` nella finestra ***Modifica macro***. Un ***Prompt previsto*** non è necessario perché in questo scenario vogliamo eseguirlo il prima possibile.
4. Torni su ***Generale*** – ***Post login***, e clicchi su ***Nuovo*** (pulsante a forma di croce).
5. Inserisca la variabile `$PASSWORD$` e `[sudo] password for username:` nel ***Prompt previsto*** (***username*** è usato come esempio).
6. Definisca un ***Timeout*** e clicchi su ***OK*** per chiudere la finestra.

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

L'obiettivo è garantire che la password venga inviata solo al momento giusto, con la sequenza di azioni prevista. Il terminale attende il prompt `[sudo] password for username:` prima di inviare il secondo comando.

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


---

# 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/connect-with-su-user-in-ssh-sessions.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.
