使用 CloudHSM CLI 通过 MFA 登录到 HSM
使用 AWS CloudHSM CloudHSM CLI 中的 login mfa-token-sign 命令通过多重身份验证(MFA)登录到硬件安全模块(HSM)。要使用此命令,您必须先为 CloudHSM CLI 设置 MFA。
用户类型
以下用户均可运行这些命令。
-
管理员
-
加密用户 (CU)
语法
aws-cloudhsm >help login mfa-token-signLogin 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.tokenEnter 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>-
将写入未签名令牌文件的文件路径。
必需:是