# Movimentação Lateral

**Tunelamento SSH ou SSH Port Forwarding** é um método para criar uma conexão criptografada (um túnel) entre uma máquina cliente e um servidor permitindo a troca (redirecionamento) das portas de acesso aos serviços.

Esse método é útil para transportar dados de serviços que utilizem protocolos não criptografados, como VNC ou FTP, evitar monitoramento de rede e dar *bypass* em firewalls.

Como fazer isso com o Putty?

Inicialmente você irá configurá-lo da seguinte maneira:

Em *Session*, você irá adicionar o IP da sua máquina com a porta 22;

<figure><img src="/files/oEb4PjpykmF98E0gWiYY" alt=""><figcaption><p>Figura: Session</p></figcaption></figure>

Depois clique em + na parte de SSH e vá em *Tunnels*;

<figure><img src="/files/9kGGLhhLAmTDWjvIoueK" alt=""><figcaption><p>Figura: Tunnels</p></figcaption></figure>

Dentro de *Tunnels*, em *Source port*, você irá colocar o seu local host com a porta (ex: 172.0.0.1:1111);

E em *Destination*, o IP que você pretende se conectar com a porta;

<figure><img src="/files/eNyLMJ9NmxIFKzSpLJWT" alt=""><figcaption><p>Figura: Configurações Tunnels</p></figcaption></figure>

Clica em *Open*;

Vai abrir um terminal em que você irá fazer login SSH;

<figure><img src="/files/MFagHgVNxXY4UILI8o4q" alt=""><figcaption><p>Figura: Terminal Putty</p></figcaption></figure>

Depois de feito, basta você fazer uma conexão com seu local host, que pode ser feito via *RDP (Remote Desktop Protocol)* e você já terá concluído seu tunelamento.&#x20;

<figure><img src="/files/rgYvx6Rx9FzOg3jph07e" alt=""><figcaption><p>Figura: RDP</p></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://handbook.vantico.com.br/metodologias/rede-interna/pos-exploracao/movimentacao-lateral.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
