There are two ways to generate a dxflow key:
To generate a dxflow key using the built-in CLI command, this creates a new RSA key pair for authenticating with the dxflow engine.
dxflow key generate [NAME]
[NAME] - Optional parameter to specify the key name. If omitted, defaults to rsa.The command generates two files in your current directory:
| File | Description |
|---|---|
[NAME].pem | Private key (keep secure) |
[NAME].pub | Public key (for authentication) |
Generate a dxflow key using the standard SSH key generation utility. This method creates an RSA key pair compatible with the dxflow engine.
ssh-keygen -t rsa -b 2048 -C "<your_email@example.com>"
-t rsa - Specifies RSA key type-b 2048 - Sets key length to 2048 bits-C - Adds a comment (typically your email)<your_email@example.com> with your actual email~/.ssh/id_rsa)The command generates two files:
| File | Description |
|---|---|
id_rsa | Private key (keep secure) |
id_rsa.pub | Public key (for authentication) |
After generating your key pair, you can register it with the dxflow engine:
dxflow key register <public-key-path>
dxflow key list
dxflow key unregister <key-id>
The dxflow engine uses RSA challenge-response authentication: