> 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 个字符的密码，包含至少一个大写字母、一个小写字母、一个数字和一个特殊字符。
