# 设置登录方式

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

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

## 系统生成的 root 密码

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

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

## SSH 密钥

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

## 设置自定义密码

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


---

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