登录 mfa-token-sign - AWS CloudHSM

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

登录 mfa-token-sign

使用 AWS CloudHSM CloudHSM CLI 中的 login mfa-token-sign 命令使用多重身份验证登录。要使用此命令,您必须先为 CloudHSM CLI 设置 MFA

用户类型

以下用户均可运行这些命令。

  • Admin

  • 加密用户 (CU)

语法

aws-cloudhsm > help login mfa-token-sign Login with token-sign mfa USAGE: login --username <USERNAME> --role <ROLE> mfa-token-sign --token <TOKEN> OPTIONS: --cluster-id <CLUSTER_ID> Unique Id to choose which of the clusters in the config file to run the operation against. If not provided, will fall back to the value provided when interactive mode was started, or error --token <TOKEN> Filepath where the unsigned token file will be written -h, --help Print help

示例

aws-cloudhsm > login --username test_user --role admin mfa-token-sign --token /home/valid.token Enter password: Enter signed token file path (press enter if same as the unsigned token file): { "error_code": 0, "data": { "username": "test_user", "role": "admin" } }

参数

<CLUSTER_ID>

要运行此操作的集群的 ID。

必需:如果已配置多个集群。

<TOKEN>

将写入未签名令牌文件的文件路径。

必需:是

相关 主题