> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/pt-br/password-attacks/brute-force-ssh-key.md).

# Quebra da passphrase da chave SSH

### **Descriptografia da chave SSH:**

A chave SSH extraída está protegida por um código de acesso. Novos usos `ssh2john` para converter a chave para um formato utilizável por `john` e links para um ataque por força bruta:

<figure><img src="/files/18281b5b411f2936da550a7e5a1dd8a1bda27cbb" alt="" width="371"><figcaption></figcaption></figure>

```bash
ssh2john id_rsa > id_rsa.hash
```

<figure><img src="/files/3350ba08561ab32420a8a793de7d669bf8cdfe31" alt=""><figcaption></figcaption></figure>

```bash
john -w:/usr/share/SecLists/Passwords/Leaked-Databases/rockyou.txt id_rsa.hash
```

<figure><img src="/files/d1695673dd1910cf26b78035b5d4aa977dbe0b75" alt="" width="563"><figcaption></figcaption></figure>

Senha encontrada: `hunter`.

```bash
ssh -i id_rsa david@10.10.10.165
```

<figure><img src="/files/88fc0647b0cd3f8342cbb2fba1cddf437d6ff7ef" alt="" width="563"><figcaption></figcaption></figure>


---

# 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://hacking-notes.jord4n.pro/pt-br/password-attacks/brute-force-ssh-key.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.
