> For the complete documentation index, see [llms.txt](https://docs.console.zenlayer.com/welcome/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.console.zenlayer.com/welcome/cn/bare-metal/get-started/create-a-bare-metal-instance/set-login-credentials.md).

# 设置登录方式

<figure><img src="/files/37jICZ83RZHpy1wiLso0" alt=""><figcaption></figcaption></figure>

以下方式支持登录到您的实例。请妥善保管您的密码。

## 系统生成的 root 密码

实例预配后，系统生成的 root 密码将通过电子邮件发送给您。您可以使用该密码进行登录。

出于安全原因，建议您在首次登录实例后立即更改系统生成的 root 密码。

## SSH 密钥

将您的公钥放置在实例上以安全访问。您的公钥通常位于 `/.ssh/id_rsa.pub`，并以 `ssh-rsa` 开头。您必须安全存储私钥并确保其保密。请注意不要使用您的私钥。

## 设置自定义密码

选择 8 到 16 个字符的密码，包含至少一个大写字母、一个小写字母、一个数字和一个特殊字符。


---

# 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://docs.console.zenlayer.com/welcome/cn/bare-metal/get-started/create-a-bare-metal-instance/set-login-credentials.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.
