> 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/set-up-an-ssh-tunnel.md).

# Configurare un tunnel SSH

Il tunneling SSH viene utilizzato per creare una connessione cifrata su una rete non attendibile. È costituito da un tunnel cifrato che sfrutta il protocollo SSH, fornendo così una connessione sicura per il trasferimento dei dati. Il tunnel SSH può essere utilizzato per stabilire una sorta di rete privata virtuale (VPN) per accedere ai servizi attraverso i firewall.

Questa è la procedura per stabilire un tunnel SSH di base per raggiungere una macchina remota:

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

### Creare un tunnel SSH

Per creare un tunnel SSH, le connessioni locali attraverso una porta specificata devono essere inoltrate a un server SSH. Per i tunnel SSH, una determinata porta di una macchina deve essere inoltrata a una porta dell'altra macchina, che sarà l'altra estremità del tunnel. Una volta stabilito il tunnel SSH, l'utente può connettersi alla porta specificata in precedenza sulla prima macchina per accedere al servizio di rete.

* Crei una voce ***Tunnel SSH*** (***Nuova voce*** – ***Sessione*** – ***Tunnel SSH***).

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

Imposti le proprietà come segue:

#### Impostazioni del server SSH

| IMPOSTAZIONI                | DESCRIZIONE                                                        |
| --------------------------- | ------------------------------------------------------------------ |
| **Host**                    | Imposti l'indirizzo IP del server SSH.                             |
| **Porta**                   | Imposti la porta del server SSH. La porta predefinita è la 22.     |
| **Imposta chiave pubblica** | Configuri la chiave pubblica.                                      |
| **Nome utente**             | Inserisca il nome utente utilizzato per connettersi al server SSH. |
| **Password**                | Inserisca la password utilizzata per connettersi al server SSH.    |

#### Impostazioni del tunnel in uscita

| IMPOSTAZIONI         | DESCRIZIONE                                                                                                                  |
| -------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| **Modalità**         | <p>Scelga tra:<br>- <strong>Locale</strong><br>- <strong>Remoto</strong><br>- <strong>Dinamico</strong></p>                  |
| **Origine**          | L'indirizzo locale deve rimanere 127.0.0.1.                                                                                  |
| **Porta di origine** | Nella maggior parte dei casi lasci la porta locale al suo valore predefinito 3390.                                           |
| **Host remoto**      | Inserisca l'host o l'indirizzo IP del client remoto.                                                                         |
| **Porta remota**     | Imposti la porta finale da raggiungere; nella maggior parte dei casi è preferibile lasciarla al suo valore predefinito 3389. |

A questo punto, avvii la voce per verificare se il tunnel si apre correttamente o meno, quindi termini la sessione.

### Creare una sessione remota

Crei una voce di sessione RDP e compili le impostazioni richieste prima di fare clic su ***Aggiungi***:

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

| IMPOSTAZIONI    | DESCRIZIONE                                     |
| --------------- | ----------------------------------------------- |
| **Host**        | Inserisca l'indirizzo locale, ovvero 127.0.0.1. |
| **Porta**       | Inserisca la porta locale, ovvero 3390.         |
| **Tipo RDP**    | Lasci il tipo RDP su ***Normale***.             |
| **Nome utente** | Inserisca il nome utente dell'host remoto.      |
| **Dominio**     | Inserisca il dominio dell'host remoto.          |
| **Password**    | Inserisca la password dell'host remoto.         |

Nella sezione ***VPN/Tunnel/Gateway*** della sessione RDP, imposti il campo ***Connetti*** su ***Connetti sempre*** e il campo ***Tipo*** su ***SSH link***.

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

Sempre nella sezione ***VPN/Tunne/Gateway***, vada alla scheda ***Impostazioni (SSH link)*** e selezioni la voce del tunnel SSH appena creata dal menu a discesa ***Sessione***. Faccia clic su ***Aggiungi***.

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

La sessione è ora configurata con le seguenti istruzioni: per ogni connessione che arriva sull'origine 127.0.0.1 e sulla porta 3390, inoltra tale connessione al server SSH e richiedi al server di inoltrare tale connessione all'host remoto.

### Vedi anche

* [Devolutions Academy – Create and use SSH Tunnel entry in Remote Desktop Manager](https://academy.devolutions.net/student/activity/2594919-create-and-use-ssh-tunnel-entry-in-remote-desktop-manager)


---

# 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/set-up-an-ssh-tunnel.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.
