登錄 mfa-token-sign - AWS CloudHSM

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

登錄 mfa-token-sign

使用 AWS CloudHSM CloudHSM CLI 中的 login mfa-token-sign 命令來使用多重要素驗證登入。若要使用此命令,您必須先設定 MFA 的 CloudHSM CLI

使用者類型

下列使用者可以執行這些命令。

  • 管理員

  • 加密使用者 (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>

執行此作業的叢集識別碼。

必要:如果已設定多個叢集。

<TOKEN>

將寫入未簽署權杖檔案的檔案路徑。

必要:是

相關主題