> For the complete documentation index, see [llms.txt](https://rpicn.bsdcn.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rpicn.bsdcn.org/fu-wu/shu-mei-pai-zhang-hao-raspberry-pi-id.md).

# 树莓派账号（Raspberry Pi ID）

## 创建树莓派账号

要使用树莓派服务，你首先需要创建一个[树莓派 ID](https://id.raspberrypi.com/)。

在浏览器中访问 [id.raspberrypi.com](https://id.raspberrypi.com/)。

输入电子邮件和密码。点击 **注册** 按钮来创建你的账户。

![创建账户](https://www.raspberrypi.com/documentation/services/images/create_account_identity.png?hash=b7d11456c6e8e284a9b5cd9b91e1de77)

创建账户后，你将收到一封验证电子邮件。

![验证身份](https://www.raspberrypi.com/documentation/services/images/verify_identity.png?hash=fae9bdb9ea173de1bb1175ce2eb6d51e)

在邮件中点击 **验证电子邮件** 按钮，来验证你的电子邮件地址以完成账户创建。

![已登录身份](https://www.raspberrypi.com/documentation/services/images/signed_in_identity.png?hash=75b76927f5b2e4cc641bfdbfc13b31d3)

创建树莓派账号后，你就可以使用 **使用树莓派账号登录** 按钮登录树莓派服务。

## 启用双因素身份验证

与大多数现代网络服务类似，树莓派账号支持使用基于时间的一次性密码 (TOTP) ，即双因素身份验证 (2FA)。

双因素身份验证增加了额外的一层保护。除了密码外，2FA 还需要另外的信息来登录。你应该基于 *你拥有的东西*（如智能手机）或 *你的生物特征信息* 来作为第二因素。

本指南使用你的智能手机作为认证的第二因素。

### 安装双因素认证应用

首先，在你的手机上下载一个生成 TOTP 的应用程序。安装一款 2FA 应用程序，如 [Authy](https://authy.com/) 或 Google Authenticator。

### 启用双因素身份验证

要启用双因素身份验证，请在登录到你的 [树莓派 ID](https://id.raspberrypi.com/) 后点击 **双因素身份验证** 选项。

![启用 2FA](https://www.raspberrypi.com/documentation/services/images/enable_2fa.png?hash=4d98c2191e3e389bd8a049dcb2585ca4)

在你的手机上打开 2FA 应用程序。使用你的树莓派账号提供的 QR 码扫描你的 2FA 应用程序以开始生成令牌。

![认证](https://www.raspberrypi.com/documentation/services/images/authenticate.png?hash=cf3423489e85d64e8aeafd30eee67eb7)

输入你 2FA 软件生成的六位数字 TOTP，来注册 2FA 应用程序与你的树莓派 ID。

将出现确认屏幕，其包含恢复代码。请将恢复代码存储到安全的地方。**这是在你丢失手机及 2FA 软件后，唯一能绕过 2FA的方法**。

![已启用 TOTP](https://www.raspberrypi.com/documentation/services/images/totp_enabled.png?hash=b2448ab2aa08b20103aa24050e46497a)

你现在已经配置了树莓派账号需要使用手机上 2FA 应用程序生成的 TOTP 进行登录。

| 注意 | 你可以随时在 [id.raspberrypi.com](https://id.raspberrypi.com/) 上禁用双因素身份验证。 |
| -- | -------------------------------------------------------------------- |
