> For the complete documentation index, see [llms.txt](https://pnpt.adot8.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pnpt.adot8.com/linux-privilege-escalation/passwords-and-file-permissions/ssh-keys.md).

# 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 %}
