# SSH Keys

{% embed url="<https://swisskyrepo.github.io/InternalAllTheThings/redteam/escalation/linux-privilege-escalation/#last-edited-files>" %}

```
find / -name authorized_keys 2> /dev/null           Pubic Keys
find / -name id_rsa 2> /dev/null                    Private Key
```

If a private key is found it is possible that it belongs not to another server but to a different user on the same machine

{% hint style="danger" %}
If a private key is found it is possible that it belongs not to another server but to a different user on the same machine...... Maybe root??
{% endhint %}


---

# 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://pnpt.adot8.com/linux-privilege-escalation/passwords-and-file-permissions/ssh-keys.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.
