> 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/zh/ports-and-services/ssh-22.md).

# SSH - 22

SSH 通常是一项验证和访问服务：请仔细测试凭据，检查旧版用户枚举问题，并在可写的情况下使用基于密钥的访问 `authorized_keys` 路径可用。

## 备注

<table data-view="cards" data-full-width="false" data-search="false"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>暴力破解</strong></td><td>使用 Hydra 验证 SSH 凭据。</td><td><a href="/pages/05f0ee2abaf7207f8ebf86e8b5264045615f00aa">/pages/05f0ee2abaf7207f8ebf86e8b5264045615f00aa</a></td></tr><tr><td><strong>用户枚举</strong></td><td>检查旧版 OpenSSH 的用户枚举行为。</td><td><a href="/pages/12eff1d2a4b7543082e72ab0bee57362513b3044">/pages/12eff1d2a4b7543082e72ab0bee57362513b3044</a></td></tr><tr><td><strong>密钥访问</strong></td><td>当存在写入权限时，将 SSH 公钥添加到 authorized_keys。</td><td><a href="/pages/c1c32c78d96da899fedd4924e639dc7663017dc0">/pages/c1c32c78d96da899fedd4924e639dc7663017dc0</a></td></tr></tbody></table>


---

# 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/zh/ports-and-services/ssh-22.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.
